Date: Mon, 11 Oct 1999 18:45:35 +0200 (CEST) From: Christian Weisgerber <naddy@unix-ag.uni-kl.de> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/14262: devel/boehm-gc ignores CFLAGS Message-ID: <199910111645.SAA44077@fettuccini.unix-ag.uni-kl.de>
next in thread | raw e-mail | index | archive | help
>Number: 14262 >Category: ports >Synopsis: devel/boehm-gc ignores CFLAGS >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 11 09:50:00 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Christian Weisgerber >Release: FreeBSD 4.0-CURRENT i386 >Organization: Unix AG, Uni Kaiserslautern >Environment: n/a >Description: The devel/boehm-gc port ignores the CC/CXX/CFLAGS/CXXFLAGS variables. >How-To-Repeat: cd /usr/ports/devel/boehm-gc && make >Fix: diff -uNr /usr/ports/devel/boehm-gc/patches/patch-aa boehm-gc/patches/patch-aa --- /usr/ports/devel/boehm-gc/patches/patch-aa Tue Aug 3 14:57:39 1999 +++ boehm-gc/patches/patch-aa Mon Oct 11 18:31:47 1999 @@ -1,6 +1,16 @@ ---- Makefile.orig Tue Jul 20 02:13:46 1999 -+++ Makefile Tue Jul 20 02:17:01 1999 -@@ -16,8 +16,35 @@ +--- Makefile.orig Fri Mar 26 00:41:43 1999 ++++ Makefile Mon Oct 11 18:31:14 1999 +@@ -8,16 +8,44 @@ + # c++ interface to gc.a + # cord/de - builds dumb editor based on cords. + ABI_FLAG= +-CC=cc $(ABI_FLAG) +-CXX=CC $(ABI_FLAG) ++CC+= $(ABI_FLAG) ++CXX+= $(ABI_FLAG) + AS=as $(ABI_FLAG) + # The above doesn't work with gas, which doesn't run cpp. + # Define AS as `gcc -c -x assembler-with-cpp' instead. # Under Irix 6, you will have to specify the ABI (-o32, -n32, or -64) # if you use something other than the default ABI on your machine. @@ -10,8 +20,9 @@ +# The new c++-t and c++-nt (test and notest) are because we don't want +# to fill anyone's log with leak messages! - MMCG + -+CFLAGS= -O -DNO_SIGNALS -DALL_INTERIOR_POINTERS -DATOMIC_UNCOLLECTABLE \ ++GCFLAGS= -DNO_SIGNALS -DALL_INTERIOR_POINTERS -DATOMIC_UNCOLLECTABLE \ + -DNO_EXECUTE_PERMISSION -DSILENT -DREDIRECT_MALLOC=GC_malloc ++CFLAGS+= $(GCFLAGS) + +LEAKFLAGS=$(CFLAGS) -DFIND_LEAK + @@ -37,7 +48,16 @@ # For dynamic library builds, it may be necessary to add flags to generate # PIC code, e.g. -fPIC on Linux. -@@ -183,8 +210,6 @@ +@@ -120,7 +148,7 @@ + -DDONT_ADD_BYTE_AT_END -DALL_INTERIOR_POINTERS + # Flags for building libgc.a -- the last two are required. + +-CXXFLAGS= $(CFLAGS) ++CXXFLAGS+= $(GCFLAGS) + AR= ar + RANLIB= ranlib + +@@ -183,8 +211,6 @@ # not time-critical anyway. # Set SPECIALCFLAGS to -q nodirect_code on Encore. @@ -46,7 +66,7 @@ pcr: PCR-Makefile gc_private.h gc_hdrs.h gc.h gcconfig.h mach_dep.o $(SRCS) make -f PCR-Makefile depend make -f PCR-Makefile -@@ -222,13 +247,18 @@ +@@ -222,13 +248,18 @@ ./if_mach HP_PA "" $(CXX) $(CXXFLAGS) -o test_cpp $(srcdir)/test_cpp.cc gc_cpp.o gc.a -ldld ./if_not_there test_cpp $(CXX) $(CXXFLAGS) -o test_cpp $(srcdir)/test_cpp.cc gc_cpp.o gc.a `./threadlibs` >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199910111645.SAA44077>