|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r73506 - trunk/libs/locale/build
From: artyomtnk_at_[hidden]
Date: 2011-08-03 05:42:53
Author: artyom
Date: 2011-08-03 05:42:52 EDT (Wed, 03 Aug 2011)
New Revision: 73506
URL: http://svn.boost.org/trac/boost/changeset/73506
Log:
Added test for gcc to check if it can accept -shared options
Added:
trunk/libs/locale/build/option.cpp (contents, props changed)
Text files modified:
trunk/libs/locale/build/Jamfile.v2 | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
Modified: trunk/libs/locale/build/Jamfile.v2
==============================================================================
--- trunk/libs/locale/build/Jamfile.v2 (original)
+++ trunk/libs/locale/build/Jamfile.v2 2011-08-03 05:42:52 EDT (Wed, 03 Aug 2011)
@@ -45,6 +45,13 @@
exe has_external_iconv : has_iconv_libc_ext iconv ;
explicit has_external_iconv ;
+exe accepts_shared_option : ../build/option.cpp
+ : <cxxflags>-shared-libstdc++
+ <cxxflags>-shared-libgcc
+ <linkflags>-shared-libstdc++
+ <linkflags>-shared-libgcc
+ ;
+
ICU_PATH = [ modules.peek : ICU_PATH ] ;
ICU_LINK = [ modules.peek : ICU_LINK ] ;
@@ -303,6 +310,7 @@
if <target-os>windows in $(properties)
&& <toolset>gcc in $(properties)
&& <link>shared in $(properties)
+ && [ configure.builds accepts_shared_option : $(properties) : "g++ -shared-* supported" ]
{
flags-result += <cxxflags>-shared-libstdc++
<cxxflags>-shared-libgcc
Added: trunk/libs/locale/build/option.cpp
==============================================================================
--- (empty file)
+++ trunk/libs/locale/build/option.cpp 2011-08-03 05:42:52 EDT (Wed, 03 Aug 2011)
@@ -0,0 +1,10 @@
+//
+// Copyright (c) 2009-2011 Artyom Beilis (Tonkikh)
+//
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+//
+int main()
+{
+}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk