summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorSonic Zhang <sonic.zhang@analog.com>2013-05-03 18:39:37 +0800
committerPeter Korsgaard <jacmet@sunsite.dk>2013-05-05 22:54:37 +0200
commit57c05432917de3b9aec293d713acafde01ac9b07 (patch)
tree22e5eecb216e65b93f836b596b08e2d6444b2493 /package
parent66d41890ec2b76189bcd427a0cc3966ff56f9712 (diff)
downloadbuildroot-novena-57c05432917de3b9aec293d713acafde01ac9b07.tar.gz
buildroot-novena-57c05432917de3b9aec293d713acafde01ac9b07.zip
arch: toolchain: Introduce binary format FLAT types.
Just introduce the symbol and options in arch generic Config.in. Add FLAT types specific compiling flags into package makefile. Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package')
-rw-r--r--package/Makefile.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/Makefile.in b/package/Makefile.in
index a8bf36b18..dd3bc7d1a 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -103,6 +103,17 @@ TARGET_CFLAGS = $(TARGET_CPPFLAGS) $(TARGET_ABI) $(TARGET_OPTIMIZATION) $(TARGET
TARGET_CXXFLAGS = $(TARGET_CFLAGS)
TARGET_LDFLAGS = $(call qstrip,$(BR2_TARGET_LDFLAGS))
+ifeq ($(BR2_BINFMT_FLAT_SHARED),y)
+TARGET_LDFLAGS += -mid-shared-library -mshared-library-id=0
+TARGET_CFLAGS += -mid-shared-library -mshared-library-id=0
+TARGET_CXXFLAGS += -mid-shared-library -mshared-library-id=0
+endif
+ifeq ($(BR2_BINFMT_FLAT_SEP_DATA),y)
+TARGET_LDFLAGS += -msep-data
+TARGET_CFLAGS += -msep-data
+TARGET_CXXFLAGS += -msep-data
+endif
+
ifeq ($(BR2_TOOLCHAIN_BUILDROOT)$(BR2_TOOLCHAIN_CTNG),y)
TARGET_CROSS=$(HOST_DIR)/usr/bin/$(GNU_TARGET_NAME)-
else