summaryrefslogtreecommitdiff
path: root/Makefile.flags
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-07-17 20:39:27 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-07-17 20:39:27 +0000
commit150d2fa114d626761a67e529959433226793e733 (patch)
treeaa2f46682b3bf49fb7f4d746f8f68d43f7223980 /Makefile.flags
parentc5f24268381e462a688ae29193deb6857a9db485 (diff)
downloadbusybox-150d2fa114d626761a67e529959433226793e733.tar.gz
Modify method of linking against libs. Now we fisrt try all
specified libs, and if it succeeds, we try to remove them one-by-one. If link succeeds, then library is thrown out. Should solve the problem with SELinux linking in libsepol even when not needed.
Diffstat (limited to 'Makefile.flags')
-rw-r--r--Makefile.flags13
1 files changed, 10 insertions, 3 deletions
diff --git a/Makefile.flags b/Makefile.flags
index b54679047..d8817bed6 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -59,18 +59,25 @@ ifeq ($(CONFIG_STATIC),y)
LDFLAGS += -static
endif
+BBOX_LIB_LIST = m crypt
ifeq ($(CONFIG_SELINUX),y)
-LDLIBS += -lselinux -lsepol
+#LDLIBS += -lselinux -lsepol
+BBOX_LIB_LIST += selinux sepol
endif
ifeq ($(CONFIG_EFENCE),y)
-LDLIBS += -lefence
+#LDLIBS += -lefence
+BBOX_LIB_LIST += efence
endif
ifeq ($(CONFIG_DMALLOC),y)
-LDLIBS += -ldmalloc
+#LDLIBS += -ldmalloc
+BBOX_LIB_LIST += dmalloc
endif
+# For scripts/trylink
+export BBOX_LIB_LIST
+
#LDFLAGS += -nostdlib
LDFLAGS_ELF2FLT = -Wl,-elf2flt