Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1228: bug in toolset gcc + HP/UX PA-RSIC
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-10-02 11:55:07
#1228: bug in toolset gcc + HP/UX PA-RSIC
-----------------------------------------+----------------------------------
Reporter: oliver.kowalke_at_[hidden] | Owner: vladimir_prus
Type: Bugs | Status: closed
Milestone: To Be Determined | Component: build
Version: Boost 1.34.1 | Severity: Showstopper
Resolution: fixed | Keywords:
-----------------------------------------+----------------------------------
Comment (by bgubenko):
Replying to [comment:7 vladimir_prus]:
> Usually, -fPIC is needed only for shared libraries. This is handled by
this code:
> {{{
> flags gcc.compile OPTIONS <link>shared : -fPIC ;
> }}}
> is there a reason this is not sufficient on HP-UX?
Just for the record: on HP-UX/PA-RISC, -fPIC on the compile command is not
sufficient. On this platform, when building shared library, -fPIC should
also be explicitly specified on the link command. This is handled by:
flags $(toolset).link OPTIONS $(condition)/<link>shared :
-fPIC
: unchecked ;
inside 'case hpux :'.
On HP-UX/ia64, -fPIC is not necessary, but specifying it does not do any
harm.
Thanks,
Boris
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1228#comment:9>
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:49:56 UTC