Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 273890 | Differences between
and this patch

Collapse All | Expand All

(-)plan9/bin/9a (-7 / +13 lines)
Lines 1-15 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
2
3
if [ $# != 1 ]; then
4
	echo 'usage: 9a file.s' 1>&2
5
	exit 1
6
fi
7
8
aflags=""
3
aflags=""
9
case "`uname`" in
4
case "`uname`" in
10
Darwin)
5
Darwin)
11
	aflags="-arch `arch`"
6
	aflags="-arch `arch`"
12
esac
7
esac
13
8
14
out=`echo $1 | sed 's/\.s$//;s/$/.o/'`
9
for arg; do
15
exec as $aflags -o $out $1
10
	case $arg in
11
	-*)
12
		opts="$opts $arg"
13
		;;
14
	*.s)
15
		src=$arg
16
		dst=$(echo $arg | sed 's/\.s/\.o/')
17
		;;
18
	esac
19
done
20
21
exec as $aflags $opts -o $dst $src
(-)plan9/src/mkhdr (-1 / +1 lines)
Lines 29-35 Link Here
29
INSTALL=install
29
INSTALL=install
30
CFLAGS=
30
CFLAGS=
31
LDFLAGS=
31
LDFLAGS=
32
AFLAGS=
32
AFLAGS=--noexecstack
33
CLEANFILES=
33
CLEANFILES=
34
NUKEFILES=
34
NUKEFILES=
35
YACC=9 yacc
35
YACC=9 yacc

Return to bug 273890