wok-stable rev 4203
gpxe: fix build
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Sep 23 22:36:48 2009 +0200 (2009-09-23) |
parents | bd5a161c2169 |
children | 2d029c9663d9 |
files | gpxe/receipt gpxe/stuff/gcc.u |
line diff
1.1 --- a/gpxe/receipt Wed Sep 23 21:56:27 2009 +0200 1.2 +++ b/gpxe/receipt Wed Sep 23 22:36:48 2009 +0200 1.3 @@ -14,13 +14,13 @@ 1.4 compile_rules() 1.5 { 1.6 cd $src/src 1.7 - for i in prefix.u default_boot.u cmdline.u url_list.u; do 1.8 + for i in prefix.u default_boot.u cmdline.u url_list.u gcc.u; do 1.9 [ -f done.$i ] && continue 1.10 echo "Apply $i..." 1.11 patch -p2 < ../../stuff/$i || return 1 1.12 touch done.$i 1.13 done 1.14 - make bin/gpxe.lkrn bin/undionly.kpxe 1.15 + make EXTRA_CFLAGS=-fno-strict-aliasing bin/gpxe.lkrn bin/undionly.kpxe 1.16 } 1.17 1.18 # Rules to gen a SliTaz package suitable for Tazpkg.
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/gpxe/stuff/gcc.u Wed Sep 23 22:36:48 2009 +0200 2.3 @@ -0,0 +1,11 @@ 2.4 +--- gpxe-0.9.3/src/net/ipv4.c 2.5 ++++ gpxe-0.9.3/src/net/ipv4.c 2.6 +@@ -227,7 +227,7 @@ 2.7 + free_iob ( iobuf ); 2.8 + 2.9 + /** Check if the fragment series is over */ 2.10 +- if ( !iphdr->frags & IP_MASK_MOREFRAGS ) { 2.11 ++ if ( !(iphdr->frags & IP_MASK_MOREFRAGS) ) { 2.12 + iobuf = fragbuf->frag_iob; 2.13 + free_fragbuf ( fragbuf ); 2.14 + return iobuf;