1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-08 12:01:56 +00:00

Build bjam tool with -fno-strict-aliasing:

- Fixes build on 7/amd64 (gcc 4.2.0)
- Note: this only affects the build of the bjam tool,
  the libraries are build with the user's CXXFLAGS settings

Reported by:	trasz@
		"Matthew D. Fuller" <fullermd@over-yonder.net>
		Pascal Hofstee <caelian@gmail.com>

Obtained from:	http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=22;filename=boost.diff;att=1;bug=367825
		(only the -fno-strict-aliasing part) via
		http://svn.boost.org/trac/boost/ticket/977
This commit is contained in:
Simon Barner 2007-07-07 22:31:03 +00:00
parent b8b84e80bc
commit 5637dc5e83
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=195176

View File

@ -0,0 +1,11 @@
--- tools/jam/src/build.jam.orig 2007-07-07 21:34:09.000000000 +0000
+++ tools/jam/src/build.jam 2007-07-07 21:36:19.000000000 +0000
@@ -153,7 +153,7 @@
## GCC 2.x, 3.x, 4.x
toolset gcc gcc : "-o " : -D
: -pedantic
- [ opt --release : [ opt --symbols : -g : -s ] -O3 ]
+ [ opt --release : [ opt --symbols : -g : -s ] -O3 -fno-strict-aliasing ]
[ opt --debug : -g -O0 -fno-inline ]
-I$(--python-include) -Wno-long-long
: -L$(--python-lib[1]) -l$(--python-lib[2]) ;