From ec8eda419a54674a0d326ea25bd9c440cd059065 Mon Sep 17 00:00:00 2001 From: Baruch Siach Date: Thu, 23 Jun 2011 12:21:21 +0300 Subject: toolchain: add user defined target LDFLAGS options Allow the user to specify additional options for the target LDFLAGS. I use this to pass the -te500v2 option to the linker, when using the CodeSourcery toolchain for PowerPC. This chooses the correct CRT for e500 hard float. Otherwise I get errors like undefined reference to `_save32gpr_31' undefined reference to `_rest32gpr_31_x' at final link time. [Peter: fixup, use qstrip] Signed-off-by: Baruch Siach Signed-off-by: Peter Korsgaard --- package/Makefile.in | 1 + 1 file changed, 1 insertion(+) (limited to 'package/Makefile.in') diff --git a/package/Makefile.in b/package/Makefile.in index 8e9637ce8..c3af5d3ea 100644 --- a/package/Makefile.in +++ b/package/Makefile.in @@ -77,6 +77,7 @@ TARGET_CFLAGS+=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 endif TARGET_CXXFLAGS=$(TARGET_CFLAGS) +TARGET_LDFLAGS=$(call qstrip,$(BR2_TARGET_LDFLAGS)) ifeq ($(BR2_TOOLCHAIN_BUILDROOT)$(BR2_TOOLCHAIN_CTNG),y) TARGET_CROSS=$(HOST_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)- -- cgit v1.2.3