diff options
author | thierry <thierry@FreeBSD.org> | 2005-09-12 06:10:14 +0800 |
---|---|---|
committer | thierry <thierry@FreeBSD.org> | 2005-09-12 06:10:14 +0800 |
commit | d0d19943cb88c4193764955917778345007f8ae3 (patch) | |
tree | f08131b4e05e00eb955662a79f8247ee1aedd077 /shells/bush | |
parent | 497f006b368c3567db568a99f06c3b19ba91fc07 (diff) | |
download | freebsd-ports-gnome-d0d19943cb88c4193764955917778345007f8ae3.tar.gz freebsd-ports-gnome-d0d19943cb88c4193764955917778345007f8ae3.tar.zst freebsd-ports-gnome-d0d19943cb88c4193764955917778345007f8ae3.zip |
Unbreak on 4.x: gnatbind does not support -D_THREAD_SAFE.
Reported by: pointyhat via Kris
Diffstat (limited to 'shells/bush')
-rw-r--r-- | shells/bush/files/patch-src_GNUmakefile.diff | 39 |
1 files changed, 37 insertions, 2 deletions
diff --git a/shells/bush/files/patch-src_GNUmakefile.diff b/shells/bush/files/patch-src_GNUmakefile.diff index e4bff89d1359..499bd6769417 100644 --- a/shells/bush/files/patch-src_GNUmakefile.diff +++ b/shells/bush/files/patch-src_GNUmakefile.diff @@ -1,5 +1,5 @@ --- src/GNUmakefile.orig.orig Wed Aug 17 22:59:07 2005 -+++ src/GNUmakefile.orig Wed Aug 31 22:35:03 2005 ++++ src/GNUmakefile.orig Sun Sep 11 23:17:51 2005 @@ -11,7 +11,8 @@ GNATMAKE=gnatmake SDLLIBS=SDLLIBSTYPE @@ -10,7 +10,24 @@ # For SDL, sdl_config is not always available. # RPM Directories For Building an RPM file -@@ -75,7 +76,7 @@ +@@ -25,6 +26,7 @@ + + #INCLUDE=-I./adacgi-1.6/ -I./apq-2.1/ -I./ADAVOX-0.51/bc -I./ADAVOX-0.51/wc -I./ADAVOX-0.51/main -I/usr/include/SDL + INCLUDE=-I./adacgi-1.6/ -I./apq-2.1/ -I./ADAVOX-0.51/bc -I./ADAVOX-0.51/wc -I./ADAVOX-0.51/main ${SDLINCL} ++INCLUDEB=`echo ${INCLUDE} | sed -e 's/-D_THREAD_SAFE//'` + #LIBS=-L`pg_config --libdir` -L./apq-1.92/ -lpq -lSDL ${PTHREAD_LIBS} + #LIBS=-L`pg_config --libdir` -L./apq-2.1/ ./apq-2.1/c_mysql.o -l SDL -l SDL_image ${PTHREAD_LIBS} + LIBS=-L`pg_config --libdir` -L./apq-2.1/ ./apq-2.1/c_mysql.o ${SDLLIBS} +@@ -66,7 +68,7 @@ + @echo "---------------------------------------------------------------" + @echo + $(GNATMAKE) -c -i -O1 -march=$(CPU) -gnatfaon -fstack-check -c $(INCLUDE) bush +- gnatbind -x $(INCLUDE) bush.ali ++ gnatbind -x $(INCLUDEB) bush.ali + gnatlink bush.ali ./ADAVOX-0.51/wc/cglue.o c_os.o $(LIBS) + @echo + @echo "---------------------------------------------------------------" +@@ -75,7 +77,7 @@ @echo c_os.o: c_os.c @@ -19,3 +36,21 @@ #apq-2.1/Makeincl: # @echo "---------------------------------------------------------------" +@@ -110,7 +112,7 @@ + @echo "---------------------------------------------------------------" + @echo + $(GNATMAKE) -c -i -O3 -march=$(CPU) -gnatf -gnatn -gnatp -ffast-math -c $(INCLUDE) bush +- gnatbind -x $(INCLUDE) bush.ali ++ gnatbind -x $(INCLUDEB) bush.ali + gnatlink bush.ali ./ADAVOX-0.51/wc/cglue.o c_os.o $(LIBS) + + clean: +@@ -151,7 +153,7 @@ + rpm: all + + bintar: c_os.o all +- gnatbind -x $(INCLUDE) bush.ali ++ gnatbind -x $(INCLUDEB) bush.ali + gnatlink bush.ali ./ADAVOX-0.51/wc/cglue.o c_os.o $(LIBS) + (cd ..; rm -f bush.tgz; tar cfvz bush.tgz src/bush src/bush.1 README COPYING INSTALL examples doc GNUmakefile; rm -f bush ) + @echo "Don't forget to unpack and repack under a descriptive directory" |