Date: Wed, 10 Oct 2012 23:37:04 -0100 From: Jan Beich <jbeich@tormail.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/172609: [patch] audio/oss: respect CC Message-ID: <1TM6l9-0004Ei-KB@internal.tormail.org> Resent-Message-ID: <201210111149.q9BBnm0k062959@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 172609 >Category: ports >Synopsis: [patch] audio/oss: respect CC >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Oct 11 11:49:48 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Jan Beich >Release: FreeBSD 10.0-CURRENT amd64 >Organization: >Environment: # slightly different from clang -exp runs $ export PATH=~/.bin:$PATH $ for cc in CC cc c++ gcc g++ cpp; do ln -s /usr/bin/false ~/.bin/${cc}; done >Description: Don't ignore CC set via environment, make.conf or bsd.gcc.mk (USE_GCC). >How-To-Repeat: $ make -V CC clang $ make ===> Building for oss-4.2.b2007 for n in lib cmd kernel os_cmd kernel/OS/FreeBSD;do (echo $n && cd $n && make ARCH=amd64) || eval 'exit 1'; done lib for n in libossmix;do (echo $n && cd $n && make ARCH=amd64) || eval 'exit 1'; done libossmix cc -c -O2 -pipe -O -shared -fPIC -DOSS_LITTLE_ENDIAN -I../../include -I../../kernel/framework/include -I../../kernel/OS/FreeBSD -I../../kernel/nonfree/include -I../.. libossmix_cache.c -o ./libossmix_cache.o *** [./libossmix_cache.o] Error code 1 Stop in /usr/ports/audio/oss/work/build/lib/libossmix. *** [subdirs] Error code 1 >Fix: --- cc.diff begins here --- Index: audio/oss/files/patch-setup-srcconf.c =================================================================== --- audio/oss/files/patch-setup-srcconf.c (revision 305693) +++ audio/oss/files/patch-setup-srcconf.c (working copy) @@ -9,3 +9,12 @@ } if (strcmp (line, "project") == 0) +@@ -913,7 +913,7 @@ + if (config_phpmake) + fprintf (f, "<?php require getenv(\"PHPMAKE_LIBPATH\") . \"library.php\"; phpmake_makefile_top_rules(); ?>\n"); + +- fprintf (f, "CC=%s\n", conf.ccomp); ++ fprintf (f, "CC=%s\n", targetcc); + // fprintf (f, "LD=ld\n"); + fprintf (f, "HOSTCC=%s\n", hostcc); + fprintf (f, "CPLUSPLUS=%s\n", conf.cplusplus); --- cc.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1TM6l9-0004Ei-KB>