build system: make CONFIG_EXTRA_LDFLAGS go to LDFLAGS, not EXTRA_LDFLAGS

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2015-04-14 14:15:15 +02:00
parent 7b729edd33
commit e0ddb65cb2
2 changed files with 3 additions and 1 deletions

View File

@ -163,7 +163,7 @@ SKIP_STRIP = y
endif endif
ifneq ($(CONFIG_EXTRA_LDFLAGS),) ifneq ($(CONFIG_EXTRA_LDFLAGS),)
EXTRA_LDFLAGS += $(strip $(subst ",,$(CONFIG_EXTRA_LDFLAGS))) LDFLAGS += $(strip $(subst ",,$(CONFIG_EXTRA_LDFLAGS)))
#")) #"))
endif endif

View File

@ -29,4 +29,6 @@ else
LDLIBS="dl m c gcc" LDLIBS="dl m c gcc"
fi fi
# It's possible with newer version
# you need to use CFLAGS_busybox instead of EXTRA_LDFLAGS below:
make EXTRA_LDFLAGS="$LDFLAGS" LDLIBS="$LDLIBS" "$@" make EXTRA_LDFLAGS="$LDFLAGS" LDLIBS="$LDLIBS" "$@"