summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-04-07 12:37:00 (GMT)
committerWaldemar Brodkorb <wbx@openadk.org>2014-04-07 12:37:00 (GMT)
commitd63d9df8e5c245214fbd94856773eba4b0c731cf (patch)
treec693fff33a22568984fe06c0be527c7428cd9eba /mk
parentc84401914937ecf8a49ec3e8a5ede12221b96d14 (diff)
add gold support
Diffstat (limited to 'mk')
-rw-r--r--mk/build.mk5
-rw-r--r--mk/vars.mk4
2 files changed, 5 insertions, 4 deletions
diff --git a/mk/build.mk b/mk/build.mk
index af13132..2573027 100644
--- a/mk/build.mk
+++ b/mk/build.mk
@@ -41,8 +41,9 @@ DEFCONFIG= ADK_DEBUG=n \
ADK_PKG_TEST=n \
ADK_PKG_MPDBOX=n \
ADK_PKG_DEVELOPMENT=n \
- ADK_TOOLCHAIN_GCC_USE_SSP=n \
- ADK_TOOLCHAIN_GCC_USE_LTO=n \
+ ADK_TOOLCHAIN_USE_SSP=n \
+ ADK_TOOLCHAIN_USE_LTO=n \
+ ADK_TOOLCHAIN_USE_GOLD=n \
BUSYBOX_IFPLUGD=n \
BUSYBOX_EXTRA_COMPAT=n \
BUSYBOX_FEATURE_IFCONFIG_SLIP=n \
diff --git a/mk/vars.mk b/mk/vars.mk
index 49eb3e7..2f2ecc1 100644
--- a/mk/vars.mk
+++ b/mk/vars.mk
@@ -117,13 +117,13 @@ TARGET_CXXFLAGS+= -static
TARGET_LDFLAGS+= -static
endif
-ifneq ($(ADK_TOOLCHAIN_GCC_USE_SSP),)
+ifneq ($(ADK_TOOLCHAIN_USE_SSP),)
TARGET_CFLAGS+= -fstack-protector
TARGET_CXXFLAGS+= -fstack-protector
TARGET_LDFLAGS+= -fstack-protector
endif
-ifneq ($(ADK_TOOLCHAIN_GCC_USE_LTO),)
+ifneq ($(ADK_TOOLCHAIN_USE_LTO),)
TARGET_CFLAGS+= -flto
TARGET_CXXFLAGS+= -flto
TARGET_LDFLAGS+= -flto