summaryrefslogtreecommitdiffhomepage
path: root/vars
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-02-17 19:24:06 -0500
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2019-02-18 19:33:33 +0000
commit27fb486eae449df24e5ccb6d5a440d727a06bd4c (patch)
tree48a97072826b448a054935eecf2aeda27e0455e2 /vars
parentecf18bca8038f043deaca7992062a7aa6855a647 (diff)
downloadmidipix_build-27fb486eae449df24e5ccb6d5a440d727a06bd4c.tar.bz2
midipix_build-27fb486eae449df24e5ccb6d5a440d727a06bd4c.tar.xz
gcc: midipix targets: explicitly apply hidden visibility when building libgcc.
Signed-off-by: Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de>
Diffstat (limited to 'vars')
-rw-r--r--vars/gcc.vars10
1 files changed, 6 insertions, 4 deletions
diff --git a/vars/gcc.vars b/vars/gcc.vars
index 5afa276c..cfe3f49a 100644
--- a/vars/gcc.vars
+++ b/vars/gcc.vars
@@ -186,12 +186,13 @@ pkg_gcc_stage1_all() {
pkg_gcc_runtime_host_all() {
local _restart_at="${1}";
- export MAKE="make LIBTOOL=slibtool";
+ local _vis_hide="vis_hide=-fvisibility=hidden";
+ export MAKE="make LIBTOOL=slibtool ${_vis_hide}";
pkgp_gcc_build_dir "cbb-gcc-${PKG_VERSION}" cross;
ex_rtl_fileop cd "${PKG_BASE_DIR}/${PKG_BUILD_DIR}";
# GCC, compiler runtime.
if ! ex_pkg_state_test "${PKG_NAME}" build "${_restart_at}"; then
- make ${PKG_MAKEFLAGS_BUILD} all-target-libgcc;
+ make ${PKG_MAKEFLAGS_BUILD} all-target-libgcc ${_vis_hide};
ex_pkg_state_set "${PKG_NAME}" build -install;
fi;
if ! ex_pkg_state_test "${PKG_NAME}" install_subdirs "${_restart_at}"; then
@@ -258,7 +259,8 @@ pkg_gcc_full_host_all() {
pkg_gcc_full_all() {
local _restart_at="${1}" _configure_host="";
- export MAKE="make LIBTOOL=slibtool";
+ local _vis_hide="vis_hide=-fvisibility=hidden";
+ export MAKE="make LIBTOOL=slibtool ${_vis_hide}";
# GCC, native.
pkgp_gcc_build_dir "cbb-gcc-${PKG_VERSION}" native;
if ! ex_pkg_state_test "${PKG_NAME}" fetch "${_restart_at}"; then
@@ -296,7 +298,7 @@ pkg_gcc_full_all() {
fi;
if ! ex_pkg_state_test "${PKG_NAME}" build "${_restart_at}"; then
make ${PKG_MAKEFLAGS_BUILD} all-gcc;
- make ${PKG_MAKEFLAGS_BUILD} all-target-libgcc;
+ make ${PKG_MAKEFLAGS_BUILD} all-target-libgcc ${_vis_hide};
make ${PKG_MAKEFLAGS_BUILD} all-target-libstdc++-v3;
make ${PKG_MAKEFLAGS_BUILD} all;
ex_pkg_state_set "${PKG_NAME}" build -install;