on both archs shared objects are build with:
-O2 -ggdb -fvisibility-inlines-hidden -fPIC -DPIC

linking fails with an error:

/usr/bin/ld: .libs/IexBaseExc.o: relocation R_X86_64_PC32 against
`_ZNSsD1Ev@@GLIBCXX_3.4' can not be used when making a shared object;
recompile with -fPIC
/usr/bin/ld: final link failed: Bad value

without -fvisiblity-inlines-hidden everything is ok on all archs.

is this a gcc or binutils bug?

# gcc-4.0.0 (+fixes for PRs 20973,21173)
# binutils-2.16.90.0.2

-- 
           Summary: -fvisibility-inlines-hidden breaks OpenEXR-1.2.2 build.
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pluto at pld-linux dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: amd64 & ppc
  GCC host triplet: amd64 & ppc
GCC target triplet: amd64 & ppc


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21382

Reply via email to