diff options
-rw-r--r-- | package/Makefile.in | 1 | ||||
-rw-r--r-- | toolchain/toolchain-common.in | 5 |
2 files changed, 6 insertions, 0 deletions
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)- diff --git a/toolchain/toolchain-common.in b/toolchain/toolchain-common.in index 4a2f3795b..bbb7be627 100644 --- a/toolchain/toolchain-common.in +++ b/toolchain/toolchain-common.in @@ -96,3 +96,8 @@ config BR2_TARGET_OPTIMIZATION help Optimizations to use when building for the target host. NOTE: gcc optimization level is defined in build options. + +config BR2_TARGET_LDFLAGS + string "Target linker options" + help + Extra options to pass to the linker when buiding for the target. |