diff --git a/scripts/env.sh b/scripts/env.sh index 90412ba9a93318..a25e7de6a83c30 100755 --- a/scripts/env.sh +++ b/scripts/env.sh @@ -27,8 +27,8 @@ export CPUS=${CPUS:-$(nproc || sysctl -n hw.ncpu || echo 1)} export CMAKE_CXX_COMPILER=${CXX} export CMAKE_C_COMPILER=${CC} -export CFLAGS='-O3 -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-asynchronous-unwind-tables ' -export CXXFLAGS='-O3 -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-asynchronous-unwind-tables ' +export CFLAGS='-O3 -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-asynchronous-unwind-tables -ffunction-sections -fdata-sections -faddrsig ' +export CXXFLAGS='-O3 -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-asynchronous-unwind-tables -ffunction-sections -fdata-sections -faddrsig ' # libarchive needs position-independent executables to compile successfully if [ -n "$FORCE_PIC" ]; then