LDFLAGS += $(call check_ld,--warn-common,)
LDFLAGS += $(call check_ld,--sort-common,)
endif
-ifeq ($(CONFIG_STRIP_BINARIES),y)
- STRIPCMD:=$(STRIP) -s --remove-section=.note --remove-section=.comment
-else
- STRIPCMD:=/bin/true -Not_stripping_since_we_are_debugging
-endif
+STRIPCMD:=$(STRIP) -s --remove-section=.note --remove-section=.comment
ifeq ($(strip $(CONFIG_STATIC)),y)
PROG_CFLAGS += $(call check_gcc,-static,)
endif
ifeq ($(strip $(CONFIG_SELINUX)),y)
- LIBRARIES += -lselinux
+ SELINUX_INC ?= /usr/include
+ SELINUX_LIB ?= /usr/lib
+ CFLAGS := -I$(SELINUX_INC) $(CFLAGS)
+ LDFLAGS := -L$(SELINUX_LIB) $(LDFLAGS)
+ LIBRARIES += -lselinux
endif
ifeq ($(strip $(PREFIX)),)