aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Goossens <walter.goossens@axon.tv>2009-11-22 15:47:15 +0100
committerLeon Woestenberg <leon@sidebranch.com>2009-11-22 17:42:29 +0100
commit1fcbd787b813b7537b2e06b49f60a410e662e2ce (patch)
treeea0afa017625263cb92a1dd32add7c859fd2112f
parent20e1a3b1fabc982edc02dbd28d1ed20efd31919c (diff)
downloadopenembedded-1fcbd787b813b7537b2e06b49f60a410e662e2ce.tar.gz
openembedded-1fcbd787b813b7537b2e06b49f60a410e662e2ce.tar.bz2
openembedded-1fcbd787b813b7537b2e06b49f60a410e662e2ce.zip
gcc-configure-common.inc: Introduce and respect SHARED_LIBRARIES.
Signed-off-by: Leon Woestenberg <leon@sidebranch.com>
-rw-r--r--recipes/gcc/gcc-configure-common.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/recipes/gcc/gcc-configure-common.inc b/recipes/gcc/gcc-configure-common.inc
index efe8ee8787..53c7824650 100644
--- a/recipes/gcc/gcc-configure-common.inc
+++ b/recipes/gcc/gcc-configure-common.inc
@@ -13,6 +13,7 @@ OBJC_linux-uclibceabi ?= ""
OBJC_linux-uclibc ?= ""
OBJC_avr ?= ""
OBJC ?= ",objc"
+SHARED_LIBRARIES ?= "yes"
# gcc 3.x expects 'f77', 4.0 expects 'f95', 4.1 and 4.2 expect 'fortran'
FORTRAN ?= ",f77"
@@ -23,7 +24,7 @@ EXTRA_OECONF_PATHS ?= ""
EXTRA_OECONF = "${@['--enable-clocale=generic', ''][bb.data.getVar('USE_NLS', d, 1) != 'no']} \
--with-gnu-ld \
- --enable-shared \
+ ${@['--enable-shared', '--disable-shared'][ "$SHARED_LIBRARIES" != "no" ]} \
--enable-target-optspace \
--enable-languages=${LANGUAGES} \
--enable-threads=posix \