This causes every apps using tdb to have -Wl,-rpath,/usr/local/lib when linking. This can cause problems because ld searches rpath before LD_LIBRARY_PATH when locating shared libraries dependencies, so rhythmbox fail to link in jhbuild environment: /home/lantw44/gnome/devinstall/lib/libgtk-3.so: undefined reference to `pango_fc_font_map_config_changed' I have -L/home/lantw44/gnome/devinstall/lib -L/usr/local/lib in LDFLAGS, but ld still use /usr/local/lib/libpangoft2-1.0.so.0 instead of /home/lantw44/gnome/devinstall/lib/libpangoft2-1.0.so.0. Removing -Wl,-rpath,/usr/local/lib fixes the problem.
Created attachment 159461 [details] Remove -Wl,-rpath in tdb.pc
Committed, thanks!
A commit references this bug: Author: timur Date: Sun Aug 9 22:52:22 UTC 2015 New revision: 393833 URL: https://svnweb.freebsd.org/changeset/ports/393833 Log: Upgrade relevant ports to the latest releases. PR: 202041 Changes: head/databases/ldb/Makefile head/databases/ldb/distinfo head/databases/ldb/files/patch-buildtools__wafsamba__samba_install.py head/databases/ntdb/Makefile head/databases/tdb/Makefile head/databases/tdb/distinfo head/databases/tdb/files/patch-buildtools__wafsamba__samba_install.py head/devel/talloc/Makefile head/devel/talloc/distinfo head/devel/talloc/files/patch-buildtools__wafsamba__samba_install.py head/devel/tevent/Makefile head/devel/tevent/distinfo head/devel/tevent/files/patch-buildtools__wafsamba__samba_install.py head/devel/tevent/files/patch-wscript