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

--- Comment #5 from Brian J. Tarricone <[email protected]> 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.
_______________________________________________
Xfce-bugs mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce-bugs

Reply via email to