boost-jam: fix CFLAGS (thanks mike_k)

This commit is contained in:
Danny Rawlins 2008-12-10 02:51:05 +11:00
parent c00081d959
commit 67d88bf077
3 changed files with 2 additions and 4 deletions

View File

@ -1,3 +1,3 @@
67511b40359cd83cd3ae1cd8002934f7 boost-jam-3.1.17-cflags.patch
8cfd59ba4a53dc4a0de8c865972bcb58 boost-jam-3.1.17-cflags.patch
30e319a97f0e951c73cc8b7ddaec09fc boost-jam-3.1.17-misc.patch
f4afd896788f2327fd35c128ddc6e340 boost-jam-3.1.17.tgz

View File

@ -15,9 +15,7 @@ build() {
cd $name-$version
patch -p 1 -i $SRC/$name-3.1.17-misc.patch
patch -p 1 -i $SRC/$name-3.1.17-cflags.patch
export CFLAGS+="-fno-strict-aliasing"
local bindir='bin.linuxx86'
./build.sh gcc
install -m 0755 -D $bindir/bjam $PKG/usr/bin/bjam
}

View File

@ -6,7 +6,7 @@ diff -pruN boost-jam-3.1.17.orig/build.jam boost-jam-3.1.17/build.jam
toolset gcc gcc : "-o " : -D
: -pedantic -fno-strict-aliasing
- [ opt --release : [ opt --symbols : -g : -s ] -O3 ]
+ [ opt --release : [ opt --symbols : -g : -s ] $(CFLAGS) ]
+ [ opt --release : [ opt --symbols : -g : -s ] $(CFLAGS) -fno-strict-aliasing ]
[ opt --debug : -g -O0 -fno-inline ]
-I$(--python-include) -I$(--extra-include) -Wno-long-long
: -L$(--python-lib[1]) -l$(--python-lib[2]) ;