diff options
author | jkim <jkim@FreeBSD.org> | 2011-06-22 07:15:35 +0800 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2011-06-22 07:15:35 +0800 |
commit | 5e3ca12b432461262f68b6a633c956a6cbde86be (patch) | |
tree | 2efd8d0b504748c932b523b3ced14430dd24c2f9 /audio | |
parent | 82860081442133bb5cbbf9dd3b19515d9e181900 (diff) | |
download | freebsd-ports-gnome-5e3ca12b432461262f68b6a633c956a6cbde86be.tar.gz freebsd-ports-gnome-5e3ca12b432461262f68b6a633c956a6cbde86be.tar.zst freebsd-ports-gnome-5e3ca12b432461262f68b6a633c956a6cbde86be.zip |
Honor environment variable CC and fix build without cc(1).
Diffstat (limited to 'audio')
-rw-r--r-- | audio/oss/files/patch-setup-setupdir.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/audio/oss/files/patch-setup-setupdir.sh b/audio/oss/files/patch-setup-setupdir.sh new file mode 100644 index 000000000000..44a4d9023e95 --- /dev/null +++ b/audio/oss/files/patch-setup-setupdir.sh @@ -0,0 +1,31 @@ +--- setup/setupdir.sh.orig 2011-01-04 20:33:08.000000000 -0500 ++++ setup/setupdir.sh 2011-06-21 19:09:44.000000000 -0400 +@@ -84,7 +84,9 @@ echo BLDDIR=$BLDDIR > .directories + echo SRCDIR=$SRCDIR >> .directories + echo OSSLIBDIR=$OSSLIBDIR >> .directories + +-cc -o dirsetup $SRCDIR/setup/dirsetup.c ++CC=${CC:-cc} ++ ++$CC -o dirsetup $SRCDIR/setup/dirsetup.c + + # Make sure the latest soundcard.h version is installed in the system + #rm /usr/include/sys/soundcard.h +@@ -142,7 +144,7 @@ then + DTARGETOS="-D$TARGETOS" + fi + +-cc -D`uname -s` $DTARGETOS -o srcconf $SRCDIR/setup/srcconf.c ++$CC -D`uname -s` $DTARGETOS -o srcconf $SRCDIR/setup/srcconf.c + + if ./srcconf $* + then +@@ -245,7 +247,7 @@ fi + # Setup the link to the right os.h file for this operating system. + (cd kernel/framework/include;ln -s ../../../kernel/OS/$OS/os_*.h os.h) + +-cc -o ossvers -I./kernel/framework/include setup/ossvers.c ++$CC -o ossvers -I./kernel/framework/include setup/ossvers.c + ./ossvers > .version + rm ./ossvers + |