aboutsummaryrefslogtreecommitdiff
path: root/Makefile.flags
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.flags')
-rw-r--r--Makefile.flags15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile.flags b/Makefile.flags
index ee4c518d8..68dfa57ec 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -104,6 +104,11 @@ else
104LDLIBS += m 104LDLIBS += m
105endif 105endif
106 106
107ifneq ($(CONFIG_SYSROOT),)
108CFLAGS += --sysroot=$(CONFIG_SYSROOT)
109export SYSROOT=$(CONFIG_SYSROOT)
110endif
111
107ifeq ($(CONFIG_PAM),y) 112ifeq ($(CONFIG_PAM),y)
108# libpam uses libpthread, so for static builds busybox must be linked to 113# libpam uses libpthread, so for static builds busybox must be linked to
109# libpthread. On some platforms that requires an explicit -lpthread, so 114# libpthread. On some platforms that requires an explicit -lpthread, so
@@ -137,6 +142,16 @@ ifneq (,$(findstring $(W_ELF2FLT),$(LDFLAGS) $(CFLAGS_busybox)))
137SKIP_STRIP = y 142SKIP_STRIP = y
138endif 143endif
139 144
145ifneq ($(CONFIG_EXTRA_LDFLAGS),)
146EXTRA_LDFLAGS += $(strip $(subst ",,$(CONFIG_EXTRA_LDFLAGS)))
147#"))
148endif
149
150ifneq ($(CONFIG_EXTRA_LDLIBS),)
151LDLIBS += $(strip $(subst ",,$(CONFIG_EXTRA_LDLIBS)))
152#"))
153endif
154
140# Busybox is a stack-fatty so make sure we increase default size 155# Busybox is a stack-fatty so make sure we increase default size
141# TODO: use "make stksizes" to find & fix big stack users 156# TODO: use "make stksizes" to find & fix big stack users
142# (we stole scripts/checkstack.pl from the kernel... thanks guys!) 157# (we stole scripts/checkstack.pl from the kernel... thanks guys!)