summaryrefslogtreecommitdiff
path: root/audio/oss/files/patch-setup_FreeBSD_build.sh
blob: cdad8f5cc81a65c69af7f7721e47f217ea4be480 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- setup/FreeBSD/build.sh.orig	2014-02-14 22:59:55 UTC
+++ setup/FreeBSD/build.sh
@@ -7,7 +7,7 @@ then
    TXT2MAN=$SRCDIR/setup/txt2man
 else
    echo "No gawk found. Using lesser replacement" >&2
-   cc -o txt2man origdir/setup/txt2man.c
+   $CC -o txt2man origdir/setup/txt2man.c
    TXT2MAN=./txt2man
 fi
 
@@ -38,7 +38,7 @@ echo "OSSLIBDIR=$OSSLIBDIR" > prototype/
 
 # Regenerating the config file templates
 rm -f /tmp/confgen
-if ! cc -o /tmp/confgen ./setup/FreeBSD/confgen.c
+if ! $CC -o /tmp/confgen ./setup/FreeBSD/confgen.c
 then
         echo Building confgen failed
         exit 1
@@ -146,7 +146,7 @@ cp .version prototype/$OSSLIBDIR/version
 # Licensing stuff
 if test -f $SRCDIR/4front-private/osslic.c
 then
-	cc -o prototype/usr/sbin/osslic -Isetup -Ikernel/nonfree/include -Ikernel/framework/include -Iinclude -Ikernel/OS/FreeBSD -I$SRCDIR $SRCDIR/4front-private/osslic.c
+	$CC -o prototype/usr/sbin/osslic -Isetup -Ikernel/nonfree/include -Ikernel/framework/include -Iinclude -Ikernel/OS/FreeBSD -I$SRCDIR $SRCDIR/4front-private/osslic.c
 	strip prototype/usr/sbin/osslic
 
         BITS=3 # Default to 32 bit ELF format
@@ -162,7 +162,7 @@ fi
 if test -f 4front-private/ossupdate.c
 then
   #ossupdate
-  cc -I. 4front-private/ossupdate.c -s -o prototype/usr/sbin/ossupdate
+  $CC -I. 4front-private/ossupdate.c -s -o prototype/usr/sbin/ossupdate
 fi
 
 sh $SRCDIR/setup/build_common.sh $SRCDIR $OSSLIBDIR