diff options
author | Matt Fleming <matt.fleming@intel.com> | 2012-07-12 20:35:14 +0100 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2012-07-20 17:55:14 +0100 |
commit | 5c88d800a5d612ceb2339476c544f09410b5a454 (patch) | |
tree | ac4dad47ce8969191506428fd6736cfb94fc5296 /mk | |
parent | f0bbf9dd40f37f8c4870a33784996efd56955a75 (diff) | |
download | syslinux-5c88d800a5d612ceb2339476c544f09410b5a454.tar.gz syslinux-5c88d800a5d612ceb2339476c544f09410b5a454.tar.xz syslinux-5c88d800a5d612ceb2339476c544f09410b5a454.zip |
com32: Use --as-needed for LDFLAGS
This extends commit 4678fd92a21e ("elflink: fix dependency problem in
cmenu/Makefile") and basically reverts commit fb543aa635ff ("com32:
Per-object file LDFLAGS"). By using the --as-needed ld argument we can
specify all the required shared libraries for a directory, even if not
all of the libraries are needed by every .c32 file. --as-needed takes
care of only creating DT_NEEDED entries for the shared libraries that
are actually required to resolve undefined symbols in a given module.
Furthermore, by using $(LIBS) we create a dependency between .c32
files and their shared libraries, which allows multiple make jobs to
run in parallel.
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'mk')
-rw-r--r-- | mk/elf.mk | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -82,4 +82,4 @@ C_LNXLIBS = $(com32)/libutil/libutil_lnx.a \ $(CC) $(LNXCFLAGS) -o $@ $^ %.c32: %.o $(LIBS) - $(LD) $(LDFLAGS_$^) $(LDFLAGS) -o $@ $^ + $(LD) $(LDFLAGS) -o $@ $^ |