Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8266: context library don't compile for Mac OSX universal binary
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-01-09 18:45:06
#8266: context library don't compile for Mac OSX universal binary
-------------------------------------+-------------------------------------
Reporter: Serguei E. Leontiev | Owner: olli
<leo@â¦> | Status: closed
Type: Bugs | Component: context
Milestone: To Be Determined | Severity: Problem
Version: Boost 1.53.0 | Keywords: mac osx universal
Resolution: fixed | binary
-------------------------------------+-------------------------------------
Comment (by marco.serantoni@â¦):
I've able compile also the context/performance with the
bind_processor_darwin.cpp and this
'''i had to remove the RT library that is not present/needed in OSX
'''
I don't know an elegant way to make it optional ONLY for darwin.
{{{
diff --git a/performance/Jamfile.v2 b/performance/Jamfile.v2
index 108c0e1..718435c 100644
--- a/performance/Jamfile.v2
+++ b/performance/Jamfile.v2
@@ -17,7 +17,7 @@ project boost/context/performance
: requirements
<library>/boost/context//boost_context
<link>static
- <linkflags>"-lrt"
+ <linkflags>""
<threading>single
;
@@ -57,6 +57,12 @@ alias sources
: <target-os>windows
;
+alias sources
+ : performance.cpp
+ bind_processor_darwin.cpp
+ : <target-os>darwin
+ ;
+
explicit sources ;
exe performance
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8266#comment:28> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:15 UTC