Subject: [Boost-bugs] [Boost C++ Libraries] #2595: vacpp on linux: library build issues
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-12-16 17:13:17
#2595: vacpp on linux: library build issues
-----------------------------------------+----------------------------------
Reporter: Jay Berkenbilt <ejb_at_[hidden]> | Owner:
Type: Bugs | Status: new
Milestone: Boost 1.38.0 | Component: None
Version: Boost 1.37.0 | Severity: Problem
Keywords: |
-----------------------------------------+----------------------------------
When building boost libraries with xlc on a PPC64 Linux platform (though
building in 32-bit mode -- it's a RHEL5 system), I have two issues.
(Actually, I had three, but the third one has already been reported and
fixed):
* Boost is passing -qpic, but we find that we really need -qpic=large in
order to avoid problems loading
* Shared libraries are not built with the -soname option being passed to
the linker, which causes several problems, though I believe these are all
well understood.
I suspect the vacpp configuration has been tested most thoroughly on AIX,
which is the reason for these omissions.
I have attached a patch that addresses both issues. The patch applies
cleanly to 1.37.
**NOTE** This patch is Linux-specific. It would be easy to make these
properly conditional on Linux so they don't get applied on non-Linux
platforms, but since I have only linux to test with and am not that
familiar with bjam, if I were to attempt this, it would just be a guess
anyway. I'm sure someone who is familiar with bjam can very easily apply
this fix correctly rather than just accepting my incomplete patch as is.
All the patch does is replace -qpic with -qpic=large wherever -qpic is
passed to xlc, and add -Wl,-soname -Wl,<libname-without-dir> to
vacpp.link.dll.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2595> 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:59 UTC