[oe] [PATCH] gcc-configure-common.inc: Introduce SHARED_LIBRARIES.

Leon Woestenberg leon.woestenberg at gmail.com
Sun Dec 6 22:44:43 UTC 2009


--disable-shared iff SHARED_LIBRARIES is set to "no".

By default, SHARED_LIBRARIES ?= "yes" in this file,
thus this should NOT affect behaviour.

--disable-shared is needed for initial support for the
newly introduced nios2 architecture in OpenEmbedded.

Tested-by: Walter Goossens <walter.goossens at axon.tv>
Tested-by: Leon Woestenberg <leon at sidebranch.com>
Signed-off-by: Leon Woestenberg <leon at sidebranch.com>
---
 recipes/gcc/gcc-configure-common.inc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/recipes/gcc/gcc-configure-common.inc b/recipes/gcc/gcc-configure-common.inc
index 8a96326..6031834 100644
--- a/recipes/gcc/gcc-configure-common.inc
+++ b/recipes/gcc/gcc-configure-common.inc
@@ -14,6 +14,7 @@ OBJC_linux-uclibc ?= ""
 OBJC_avr ?= ""
 OBJC_nylon ?= ""
 OBJC ?= ",objc"
+SHARED_LIBRARIES ?= "yes"
 
 # gcc 3.x expects 'f77', 4.0 expects 'f95', 4.1 and 4.2 expect 'fortran'
 FORTRAN ?= ",f77"
@@ -24,7 +25,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 \
-- 
1.6.0.4





More information about the Openembedded-devel mailing list