Doug Barton <do...@dougbarton.us> writes:

> On 06/26/10 19:16, Anonymous wrote:
>> @@GLIBCXX_3.4.14 symbols are in gcc45/libstdc++.so. Try to add -lstdc++
>> or use CXX otherwise it picks up libstdc++.so from /usr/lib.
>
> I have the following in /etc/libmap.conf:
>
> libgcc_s.so.1   gcc45/libgcc_s.so.1
> libgomp.so.1    gcc45/libgomp.so.1
> libobjc.so.3    gcc45/libobjc.so.2
> libssp.so.0     gcc45/libssp.so.0
> libstdc++.so.6  gcc45/libstdc++.so.6
>
> Which should theoretically solve that issue.

I guess ld(1) only uses ld-elf.so.hints and ignores libmap.conf

  $ gcc45 test.c -lboost_python -lpython2.6 -Wl,--verbose |& fgrep stdc
  libstdc++.so.6 needed by $LOCALBASE/lib/libboost_python.so
  found libstdc++.so.6 at /usr/lib/libstdc++.so.6

  # try with -rpath-link
  $ gcc45 test.c -lboost_python -lpython2.6 -Wl,--verbose 
-Wl,-rpath-link,$LOCALBASE/lib/gcc45 |& fgrep stdc++
  libstdc++.so.6 needed by $LOCALBASE/lib/libboost_python.so
  found libstdc++.so.6 at $LOCALBASE/lib/gcc45/libstdc++.so.6

  # try with $LOCALBASE/lib/gcc45 before /usr/lib in `ldconfig -r'
  $ gcc45 test.c -lboost_python -lpython2.6 -Wl,--verbose 
-Wl,-rpath-link,$LOCALBASE/lib/gcc45 |& fgrep stdc++
  libstdc++.so.6 needed by $LOCALBASE/lib/libboost_python.so
  found libstdc++.so.6 at $LOCALBASE/lib/gcc45/libstdc++.so.6

>
>
> Doug
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to