ports/devel/boost/files/patch-tools_build_v2_tools_gcc.jam
Simon Barner 02afc06924 Update to boost 1.34.0:
- ChangeLog: http://lists.boost.org/boost-announce/2007/05/0131.php
 - Uses Boost.Build v2
 - Fixes build g++ 4.2 (and there for on 7-CURRENT)
 - Port respects CXXFLAGS unless the WITH_OPTIMIZED_CFLAGS option is set
   that enables -O3 optimization and full inlining

Requested by:	many
PR:		ports/113474 (resolved)
Obtained from:	http://boost.cvs.sourceforge.net/boost/boost/boost/detail/atomic_count_gcc.hpp?r1=1.5&r2=1.5.8.1
		via pav
2007-07-04 15:09:06 +00:00

29 lines
1.1 KiB
Text

--- tools/build/v2/tools/gcc.jam.orig Thu May 3 08:09:04 2007
+++ tools/build/v2/tools/gcc.jam Sun Jul 1 12:22:38 2007
@@ -62,7 +62,7 @@
{
# Information about the gcc command...
# The command.
- local command = [ common.get-invocation-command gcc : g++ : $(command) ] ;
+ local command = [ common.get-invocation-command gcc : %%CXX%% : $(command) ] ;
# The root directory of the tool install.
local root = [ feature.get-values <root> : $(options) ] ;
# The bin directory where to find the command to execute.
@@ -268,7 +268,7 @@
# Declare flags and action for compilation
flags gcc.compile OPTIONS <optimization>off : -O0 ;
-flags gcc.compile OPTIONS <optimization>speed : -O3 ;
+flags gcc.compile OPTIONS <optimization>speed : %%CXXFLAGS%% ;
flags gcc.compile OPTIONS <optimization>space : -Os ;
flags gcc.compile OPTIONS <inlining>off : -fno-inline ;
@@ -656,7 +656,7 @@
}
case *BSD :
{
- flags gcc OPTIONS <threading>multi : -pthread ;
+ flags gcc OPTIONS <threading>multi : %%PTHREAD_LIBS%% %%PTHREAD_CFLAGS%% ;
# there is no -lrt on BSD
}
case DragonFly :