summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2010-12-19 23:23:35 +0100
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2010-12-19 23:27:10 +0100
commit9d56cca3be234fd0d591edcb6830565b6caf1d2f (patch)
tree5e8ca7d0867c243fe48a64915f463514c5f8fe9d /mk
parent6e49b349acab1f70b303b301d1f11a7d69ec9e3c (diff)
downloadembtoolkit-9d56cca3be234fd0d591edcb6830565b6caf1d2f.tar.gz
embtoolkit-9d56cca3be234fd0d591edcb6830565b6caf1d2f.tar.bz2
embtoolkit-9d56cca3be234fd0d591edcb6830565b6caf1d2f.tar.xz
Toolchain: eglibc: make disable of versioning optional
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'mk')
-rw-r--r--mk/eglibc.mk11
1 files changed, 8 insertions, 3 deletions
diff --git a/mk/eglibc.mk b/mk/eglibc.mk
index 00e2ab8..2c61bee 100644
--- a/mk/eglibc.mk
+++ b/mk/eglibc.mk
@@ -4,7 +4,7 @@
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
+# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -22,6 +22,7 @@
# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
# \date May 2009
################################################################################
+
EGLIBC_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_EGLIBC_VERSION_STRING)))
EGLIBC_BRANCH := $(subst ",,$(strip $(CONFIG_EMBTK_EGLIBC_BRANCH_STRING)))
EGLIBC_SVN_REVISION := $(CONFIG_EMBTK_EGLIBC_SVN_REVISION)
@@ -39,6 +40,10 @@ else
EGLIBC_FLOAT_TYPE := --with-fp=yes
endif
+# Versioning in eglibc
+EGLIBC_VERSIONING_OPTION := \
+ $(if $(CONFIG_EMBTK_EGLIBC_DISABLE_VERSIONING),--disable-versioning,)
+
OPTION_GROUPS_FILE = $(EMBTK_ROOT)/mk/eglibc/eglibc-$(EGLIBC_VERSION)-options.mk
eglibc-headers_install: $(EGLIBC_HEADERS_BUILD_DIR)/.installed
@@ -108,7 +113,7 @@ $(EGLIBC_HEADERS_BUILD_DIR)/.configured:
--with-headers=$(SYSROOT)/usr/include \
--host=$(STRICT_GNU_TARGET) --build=$(HOST_BUILD) $(EGLIBC_FLOAT_TYPE) \
--disable-profile --without-gd --without-cvs --enable-add-ons \
- --enable-kernel="2.6.0" --disable-versioning \
+ --enable-kernel="2.6.0" $(EGLIBC_VERSIONING_OPTION) \
--with-bugurl=$(EMBTK_BUGURL)
@touch $@
@@ -132,7 +137,7 @@ $(EGLIBC_BUILD_DIR)/.configured:
--with-headers=$(SYSROOT)/usr/include \
--host=$(STRICT_GNU_TARGET) --build=$(HOST_BUILD) $(EGLIBC_FLOAT_TYPE) \
--disable-profile --without-gd --without-cvs --enable-add-ons \
- --enable-kernel="2.6.0" --disable-versioning \
+ --enable-kernel="2.6.0" $(EGLIBC_VERSIONING_OPTION) \
--with-bugurl=$(EMBTK_BUGURL) \
--with-pkgversion="EGLIBC from embtoolkit-$(EMBTK_VERSION)"
@touch $@