diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-03-31 03:32:05 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-03-31 03:32:05 +0000 |
commit | 05732281e46dbb814575f6fcefcfe09a17c2320d (patch) | |
tree | b944a6e6b0d7ef228b6c27558fba18351f93e435 | |
parent | 4b38e297641c08addea11f82ecf9155ceb58979a (diff) | |
download | busybox-w32-05732281e46dbb814575f6fcefcfe09a17c2320d.tar.gz busybox-w32-05732281e46dbb814575f6fcefcfe09a17c2320d.tar.bz2 busybox-w32-05732281e46dbb814575f6fcefcfe09a17c2320d.zip |
also fix static selinux linking on branch
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | Makefile.flags | 4 |
2 files changed, 6 insertions, 3 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 |
diff --git a/Makefile.flags b/Makefile.flags index b7711f698..3c2cbbbfb 100644 --- a/Makefile.flags +++ b/Makefile.flags | |||
@@ -52,10 +52,10 @@ CFLAGS += $(call cc-option,-g) | |||
52 | endif | 52 | endif |
53 | 53 | ||
54 | ifeq ($(CONFIG_STATIC),y) | 54 | ifeq ($(CONFIG_STATIC),y) |
55 | LDFLAGS += -static | 55 | LDLIBS += -static |
56 | endif | 56 | endif |
57 | 57 | ||
58 | ifeq ($(CONFIG_SELINUX),y) | 58 | ifeq ($(CONFIG_SELINUX),y) |
59 | LDFLAGS += -lselinux -lsepol | 59 | LDLIBS += -lselinux -lsepol |
60 | endif | 60 | endif |
61 | #LDFLAGS += -nostdlib | 61 | #LDFLAGS += -nostdlib |