Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#19054 - makepkg.conf LDFLAGS -Wl,--as-need troublesome

Attached to Project: Arch Linux
Opened by Andrej Gelenberg (nikel) - Monday, 12 April 2010, 08:04 GMT
Last edited by Allan McRae (Allan) - Monday, 12 April 2010, 09:12 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The LDFLAGS -Wl,--as-need cause linking errors sometimes. This flag bring not so much benefits, but problems.
My request is to remove that flag from default LDFLAGS in makepkg.conf.

For example see vimprobable2 in aur repo.
http://aur.archlinux.org/packages.php?ID=33779
This task depends upon

Closed by  Allan McRae (Allan)
Monday, 12 April 2010, 09:12 GMT
Reason for closing:  Won't implement
Additional comments about closing:  See comments
Comment by Pierre Schmitz (Pierre) - Monday, 12 April 2010, 08:25 GMT
This flag has a lot of benefits; it reduces dependencies to a minimum and safes us a lot of time because less packages need to be recompiled during so bump rebuilds. Most (nearly all) packages compile with --as-needed. If one doesn't just remove it withn that special PKGBUILD.
Comment by Ionut Biru (wonder) - Monday, 12 April 2010, 08:25 GMT
is hard to do "unset LDFGLAS" ?
Comment by Andrej Gelenberg (nikel) - Monday, 12 April 2010, 08:42 GMT
@Pierre: is that so? Binaries should be linked only against needed libs. --as-need help only then yuo try link you programm against lib, that not really needed. I don't think, this is the case very often.

@wonder: I don't wont to eliminate all LDFLAGS.
Comment by Ionut Biru (wonder) - Monday, 12 April 2010, 08:44 GMT
then use:
export LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
Comment by Andrej Gelenberg (nikel) - Monday, 12 April 2010, 08:58 GMT
@wonder: nice (don't work in dash). I have solved the problem for the package, but i don't really like --as-need as default linker flag.
Comment by Allan McRae (Allan) - Monday, 12 April 2010, 09:11 GMT
makepkg uses bash not dash so that is not an issue.

There is no way that --as-needed is every being removed from the default LDFLAGS. It breaks a few packages where upstream do not know what they are doing but it saves us A LOT of trouble.

Loading...