Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linking should be done with $(LDFLAGS) #8

Open
GoogleCodeExporter opened this issue Mar 19, 2015 · 0 comments
Open

Linking should be done with $(LDFLAGS) #8

GoogleCodeExporter opened this issue Mar 19, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

When linking, $(LDFLAGS) should always be used. This allows for the user or the 
package management system to add additional linker flags.

As an example, we are building pwauth with Poky from the Yocto Project. Poky 
specifies -Wl,--hash-style=gnu in LDFLAGS and then proceeds to verify that 
everything that is built actually uses the GNU hash. This causes an error for 
pwauth since it currently does not use $(LDFLAGS) when linking:

ERROR: QA Issue: No GNU_HASH in the elf binary: 
'tmp/work/cortexa9-vfp-neon-poky-linux-gnueabi/pwauth/2.3.11-r0/packages-split/p
wauth/usr/sbin/pwauth'

Please find attached a patch that corrects the Makefile.

Original issue reported on code.google.com by [email protected] on 27 Nov 2014 at 11:21

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant