diff options
author | kris <kris@FreeBSD.org> | 2002-09-29 05:37:51 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2002-09-29 05:37:51 +0000 |
commit | 53f7782a4421440f1ef0b00a5c0338839e195b2f (patch) | |
tree | 99b9860b8557b36ce5edfbae9dcbdbea33bc488b /graphics/qdraw | |
parent | bb9475d125ee46ea67c925a40f9f1101e17157e3 (diff) | |
download | FreeBSD-ports-53f7782a4421440f1ef0b00a5c0338839e195b2f.zip FreeBSD-ports-53f7782a4421440f1ef0b00a5c0338839e195b2f.tar.gz |
Fix build on -stable and respect CXX and CXXFLAGS
Diffstat (limited to 'graphics/qdraw')
-rw-r--r-- | graphics/qdraw/files/patch-unix_gcc.mk | 102 |
1 files changed, 78 insertions, 24 deletions
diff --git a/graphics/qdraw/files/patch-unix_gcc.mk b/graphics/qdraw/files/patch-unix_gcc.mk index 086bc41..89e5d32 100644 --- a/graphics/qdraw/files/patch-unix_gcc.mk +++ b/graphics/qdraw/files/patch-unix_gcc.mk @@ -1,28 +1,82 @@ --- make/unix_gcc.mk.orig Fri Jul 28 11:54:11 2000 -+++ make/unix_gcc.mk Mon Mar 18 07:29:27 2002 -@@ -33,13 +33,25 @@ - ifdef freebsd - GCCPATH= /usr - GCC= cc -+ifneq "${freebsd}" "34" - ifneq "${freebsd}" "40" -+ifneq "${freebsd}" "41" -+ifneq "${freebsd}" "42" -+ifneq "${freebsd}" "43" -+ifneq "${freebsd}" "44" -+ifneq "${freebsd}" "45" - ifneq "${freebsd}" "50" - GCCBASE= /usr/local - GCCTARGET= i386-unknown-freebsd3.0 - GCCVER= egcs-2.91.62 - GCCPATH= ${GCCBASE}/lib/gcc-lib/${GCCTARGET}/${GCCVER} - GCC= egcc -+endif -+endif -+endif -+endif -+endif -+endif ++++ make/unix_gcc.mk Sat Sep 28 21:55:53 2002 +@@ -30,19 +30,6 @@ + #LD = ${GCCPATH}/gcc + #CPP = ${GCCPATH}/g++ -E ${DEPINC} + +-ifdef freebsd +-GCCPATH= /usr +-GCC= cc +-ifneq "${freebsd}" "40" +-ifneq "${freebsd}" "50" +-GCCBASE= /usr/local +-GCCTARGET= i386-unknown-freebsd3.0 +-GCCVER= egcs-2.91.62 +-GCCPATH= ${GCCBASE}/lib/gcc-lib/${GCCTARGET}/${GCCVER} +-GCC= egcc +-endif +-endif +-endif + ifdef linux + GCCBASE= /usr + GCCTARGET= i686-pc-linux-gnu +@@ -51,17 +38,15 @@ + GCC= gcc endif + +-CC = ${GCC} -pipe +-CXX = ${GCC} -x c++ -pipe + AS = as +-LD = cc -pthread +-CPP = ${GCC} -x c++ -E ${DEPINC} ++LD = $(CC) -pthread ++CPP = $(CC) -x c++ -E ${DEPINC} + INSTALL = install -c + + + CPPFLAGS += -Dq_unix + +-CPPFLAGS += -I/usr/X11R6/include -I${GCCPATH}/include/g++ ++CPPFLAGS += -I/usr/X11R6/include + CPPFLAGS += -I/usr/local/include + + ifdef linux +@@ -70,7 +55,7 @@ + + + #CXXFLAGS = -ansi -Wall -g -fguiding-decls -D_THREAD_SAFE +-CXXFLAGS = -ansi -Wall -gdwarf-2 -D_THREAD_SAFE ++CXXFLAGS += -ansi -Wall -gdwarf-2 -D_THREAD_SAFE + + ifdef linux + CXXFLAGS += -D_SVID_SOURCE -D_BSD_SOURCE +@@ -80,17 +65,9 @@ + CPPFLAGS += -DDEBUG endif + +-ifdef noopt +- CXXFLAGS += -O0 +-else +- CXXFLAGS += -O2 +-endif +- + CFLAGS = ${CXXFLAGS} + +-ifdef freebsd +- DEPINC = -I${GCCPATH}/include/g++ +-else ++ifndef freebsd + DEPINC = -I${GCCPATH}/include/g++ -I${GCCPATH} endif + +@@ -115,10 +92,6 @@ + + ifdef linux + EXTRALIBS = -ldl +-endif +- +-ifneq "${freebsd}" "40" +- RUNPATH= -Wl,-rpath=${GCCPATH} -L${GCCPATH} + endif + + # assemble a file |