Skip to content
Browse files

jbigkit: fix flag problems

if CPPFLAGS is set (e.g. FORTIFY_SOURCE is selected)
-e makes make ignore the -I../libjbig part...
  • Loading branch information...
1 parent 57d773b commit 64ad38ec42181388b9647e3104511d0420338396 @v4hn v4hn committed Jun 22, 2014
Showing with 6 additions and 7 deletions.
  1. +6 −7 graphics/jbigkit/BUILD
View
13 graphics/jbigkit/BUILD
@@ -1,10 +1,11 @@
-(
+ CFLAGS+=" -fPIC" &&
- export CFLAGS="$CFLAGS -fPIC"
+ # make -e is nonstandard and produces headaches when debugging problems...
+ sedit "s/ -e//" Makefile &&
- sedit "s/CCFLAGS = -O2 -W/CCFLAGS = $CFLAGS/" Makefile
- sedit "s/CFLAGS = -O -Wall -ansi -pedantic/CCFLAGS = $CFLAGS/" libjbig/Makefile
- sedit "s/CFLAGS = -g -Wall -ansi -pedantic -I..\/libjbig/CCFLAGS = $CFLAGS -I..\/libjbig/" pbmtools/Makefile
+ # use our compile flags
+ sedit "/CFLAGS =/ d" Makefile libjbig/Makefile pbmtools/Makefile &&
+ sedit "s@CPPFLAGS = @CPPFLAGS += @" pbmtools/Makefile &&
make &&
make test &&
@@ -21,5 +22,3 @@
install -m0644 pbmtools/*.5 /usr/man/man5 &&
gather_docs libjbig/jbig.doc pbmtools/*.txt
-
-) > $C_FIFO 2>&1

0 comments on commit 64ad38e

Please sign in to comment.
Something went wrong with that request. Please try again.