Date: Sun, 13 Nov 2011 10:33:36 -1000 From: Jan Beich <jbeich@tormail.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/162542: [patch] lang/seed7: respect CC/CFLAGS Message-ID: <1RPh09-000HCO-Sk@internal.tormail.net> Resent-Message-ID: <201111132100.pADL0xSL052993@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 162542 >Category: ports >Synopsis: [patch] lang/seed7: respect CC/CFLAGS >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: Sun Nov 13 21:00:59 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Jan Beich >Release: FreeBSD 10.0-CURRENT amd64 >Organization: >Environment: # slightly different from pointyhat $ export PATH=~/.bin:$PATH $ for cc in CC cc c++ gcc g++ cpp; do ln -s /usr/bin/false ~/.bin/${cc}; done >Description: >How-To-Repeat: http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp.20110723205754/seed7-05.20110403.log >Fix: --- cc.diff begins here --- Index: lang/seed7/Makefile =================================================================== RCS file: /a/.csup/ports/lang/seed7/Makefile,v retrieving revision 1.35 diff -u -p -r1.35 Makefile --- lang/seed7/Makefile 7 Sep 2011 07:33:44 -0000 1.35 +++ lang/seed7/Makefile 13 Nov 2011 20:30:40 -0000 @@ -39,7 +39,7 @@ post-patch: ${WRKSRC}/../prg/chk_all.sd7 do-configure: - (cd ${WRKSRC} && ${GMAKE} depend) + (cd ${WRKSRC} && ${MAKE_ENV} ${GMAKE} depend) do-install: ${INSTALL_PROGRAM} ${WRKSRC}/../bin/hi ${PREFIX}/bin Index: lang/seed7/files/patch-makefile =================================================================== RCS file: /a/.csup/ports/lang/seed7/files/patch-makefile,v retrieving revision 1.6 diff -u -p -r1.6 patch-makefile --- lang/seed7/files/patch-makefile 7 Sep 2011 07:33:44 -0000 1.6 +++ lang/seed7/files/patch-makefile 13 Nov 2011 20:29:30 -0000 @@ -5,7 +5,7 @@ # CFLAGS = -O2 -g -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith -ftrapv # CFLAGS = -O2 -g -x c++ -Wall -Winline -Wconversion -Wshadow -Wpointer-arith -CFLAGS = -O2 -g -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith -+CFLAGS = -O2 -g -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith -I%%LOCALBASE%%/include ++CFLAGS += -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith -I/usr/local/include # CFLAGS = -O2 -g -std=c99 -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith # CFLAGS = -O2 -g -Wall -Winline -Wconversion -Wshadow -Wpointer-arith # CFLAGS = -O2 -g -Wall @@ -17,6 +17,15 @@ # LDFLAGS = -pg # LDFLAGS = -pg -lc_p SYSTEM_LIBS = -lncurses -lm +@@ -35,7 +35,7 @@ + COMPILER_LIB = s7_comp.a + ALL_S7_LIBS = ../bin/$(COMPILER_LIB) ../bin/$(COMP_DATA_LIB) ../bin/$(DRAW_LIB) ../bin/$(SEED7_LIB) + # CC = g++ +-CC = gcc ++CC ?= gcc + GET_CC_VERSION_INFO = $(CC) --version > + + BIGINT_LIB_DEFINE = USE_BIG_RTL_LIBRARY @@ -109,6 +109,7 @@ COMP_DATA_LIB_SRC = typ_data.c rfl_data.c ref_data.c listutl.c flistutl.c typeutl.c datautl.c COMPILER_LIB_SRC = $(PSRC1) $(LSRC1) $(LSRC2) $(LSRC3) $(ESRC1) $(ASRC1) $(ASRC2) $(ASRC3) $(GSRC1) $(GSRC2) --- 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?1RPh09-000HCO-Sk>