also fix static selinux linking on branch

1_5_stable
Mike Frysinger 2007-03-31 03:32:05 +00:00
parent 4b38e29764
commit 05732281e4
2 changed files with 6 additions and 3 deletions

View File

@ -302,6 +302,8 @@ AFLAGS_KERNEL =
CFLAGS := $(CFLAGS)
CPPFLAGS := $(CPPFLAGS)
AFLAGS := $(AFLAGS)
LDFLAGS := $(LDFLAGS)
LDLIBS :=
# Read KERNELRELEASE from .kernelrelease (if it exists)
KERNELRELEASE = $(shell cat .kernelrelease 2> /dev/null)
@ -565,7 +567,8 @@ quiet_cmd_busybox__ ?= LINK $@
cmd_busybox__ ?= $(srctree)/scripts/trylink $(CC) $(LDFLAGS) \
-o $@ -Wl,-M \
-Wl,--warn-common -Wl,--sort-common -Wl,--gc-sections \
-Wl,--start-group $(busybox-all) -Wl,--end-group
-Wl,--start-group $(busybox-all) -Wl,--end-group \
$(LDLIBS)
# Generate System.map
quiet_cmd_sysmap = SYSMAP

View File

@ -52,10 +52,10 @@ CFLAGS += $(call cc-option,-g)
endif
ifeq ($(CONFIG_STATIC),y)
LDFLAGS += -static
LDLIBS += -static
endif
ifeq ($(CONFIG_SELINUX),y)
LDFLAGS += -lselinux -lsepol
LDLIBS += -lselinux -lsepol
endif
#LDFLAGS += -nostdlib