]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc-configure: Enable the use of different symbol versioning
authorAlejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Sun, 19 Jan 2020 03:01:47 +0000 (19:01 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 19 Jan 2020 23:49:15 +0000 (23:49 +0000)
While the gnu style for symbol versioning is the most usual,
--enable-symvers[=style] can be provided several values,
gnu, gnu-versioned-namespace, darwin, darwin-export, and sun,
depending on users needs.

Introduce the SYMVERS_CONF variable to allow the user to
configure the symbol versioning in shared libraries.

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-configure-common.inc

index 24ba8ce75fa84de24890426a0b7534af624288e6..bb4f6923f2bbc07f7a9300c43eee5f2316addbb2 100644 (file)
@@ -17,6 +17,8 @@ GCCTHREADS ?= "posix"
 
 GCCPIE ??= ""
 
+SYMVERS_CONF ?= "--enable-symvers=gnu"
+
 EXTRA_OECONF = "\
     ${@['--enable-clocale=generic', ''][d.getVar('USE_NLS') != 'no']} \
     --with-gnu-ld \
@@ -27,7 +29,7 @@ EXTRA_OECONF = "\
     ${GCCPIE} \
     --enable-c99 \
     --enable-long-long \
-    --enable-symvers=gnu \
+    ${SYMVERS_CONF} \
     --enable-libstdcxx-pch \
     --program-prefix=${TARGET_PREFIX} \
     --without-local-prefix \