diff options
Diffstat (limited to 'vars')
-rw-r--r-- | vars/gcc.vars | 10 |
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; |