[Xfce-bugs] [Bug 5887] Add support for -Bsymbolic-functions to LD checks

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Tue Oct 20 11:58:29 CEST 2009


http://bugzilla.xfce.org/show_bug.cgi?id=5887

--- Comment #5 from Brian J. Tarricone <bjt23 at cornell.edu> 2009-10-20 02:58:28 PDT ---
Another issue I just thought of...  you probably only want this flag when
building shared libraries, not when building applications.  See:

https://bugs.launchpad.net/ubuntu/+source/samba/+bug/234901

That just presents one example using gethostbyname(), but I imagine there are
other cases.

Of course XDT_FEATURE_LINKER_OPTS is useful for both apps and shared libs:
--as-needed is useful for both, and -O1 fine to use for both (it currently only
has an effect on shared libs, but may in the future do something nice for apps
too).  -Bsymbolic and -Bsymbolic-functions, however, shouldn't be used with
apps.

Ignoring that bit, packages like xfconf that have both a library and an
application also hit this problem.

Any thoughts on how to fix this?  I guess we could only add safe flags to
LDFLAGS, and do something like XDT_LIBRARY_LDFLAGS for library-only flags like
this, but that strikes me as ugly and requires that the developer add that
variable to their Makefile.am for the library target only, which is probably
easy to forget (of course, forgetting doesn't break anything, so maybe it's not
a big deal).

And also I found this (see 2009-03-20):

http://wiki.services.openoffice.org/wiki/Performance/Meetings/2009_03

Unless something changed since March, they actually decided for OOo *not* to
use -Bsymbolic-functions.

-- 
Configure bugmail: http://bugzilla.xfce.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Xfce-bugs mailing list