diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-03-30 05:44:15 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-03-30 05:44:15 +0000 |
commit | 52a9db6bb874c9ce7a8b7e935ba3ebbefdf3f7d4 (patch) | |
tree | 0a00f3190ef9bc4df6e93a4a973080d53b5a66dc /Makefile | |
parent | 2e723237c932f117a74ddaab66277d1a9bb29cc5 (diff) | |
download | busybox-w32-52a9db6bb874c9ce7a8b7e935ba3ebbefdf3f7d4.tar.gz busybox-w32-52a9db6bb874c9ce7a8b7e935ba3ebbefdf3f7d4.tar.bz2 busybox-w32-52a9db6bb874c9ce7a8b7e935ba3ebbefdf3f7d4.zip |
introduce the concept of LDLIBS for additional libraries so that when we do the final link, the objects/libraries are in the correct order
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -302,6 +302,8 @@ AFLAGS_KERNEL = | |||
302 | CFLAGS := $(CFLAGS) | 302 | CFLAGS := $(CFLAGS) |
303 | CPPFLAGS := $(CPPFLAGS) | 303 | CPPFLAGS := $(CPPFLAGS) |
304 | AFLAGS := $(AFLAGS) | 304 | AFLAGS := $(AFLAGS) |
305 | LDFLAGS := $(LDFLAGS) | ||
306 | LDLIBS := | ||
305 | 307 | ||
306 | # Read KERNELRELEASE from .kernelrelease (if it exists) | 308 | # Read KERNELRELEASE from .kernelrelease (if it exists) |
307 | KERNELRELEASE = $(shell cat .kernelrelease 2> /dev/null) | 309 | KERNELRELEASE = $(shell cat .kernelrelease 2> /dev/null) |
@@ -565,7 +567,8 @@ quiet_cmd_busybox__ ?= LINK $@ | |||
565 | cmd_busybox__ ?= $(srctree)/scripts/trylink $(CC) $(LDFLAGS) \ | 567 | cmd_busybox__ ?= $(srctree)/scripts/trylink $(CC) $(LDFLAGS) \ |
566 | -o $@ -Wl,-M \ | 568 | -o $@ -Wl,-M \ |
567 | -Wl,--warn-common -Wl,--sort-common -Wl,--gc-sections \ | 569 | -Wl,--warn-common -Wl,--sort-common -Wl,--gc-sections \ |
568 | -Wl,--start-group $(busybox-all) -Wl,--end-group | 570 | -Wl,--start-group $(busybox-all) -Wl,--end-group \ |
571 | $(LDLIBS) | ||
569 | 572 | ||
570 | # Generate System.map | 573 | # Generate System.map |
571 | quiet_cmd_sysmap = SYSMAP | 574 | quiet_cmd_sysmap = SYSMAP |