@@ -94,15 +94,15 @@ SPC_MICRO_PATCHES=static_extensions_win32,cli_checks,disable_huge_page,vcruntime
9494; `native-native` - links against system libc dynamically
9595; `native-native-musl` - links against musl libc statically
9696; `native-native-musl -dynamic` - links against musl libc dynamically
97- SPC_TARGET =${GNU_ARCH}-linux
97+ SPC_TARGET =${GNU_ARCH}-linux-musl
9898
9999; compiler environments (default value is defined by selected toolchain)
100100CC =${SPC_DEFAULT_CC}
101101CXX =${SPC_DEFAULT_CXX}
102102AR =${SPC_DEFAULT_AR}
103103LD =${SPC_DEFAULT_LD}
104104; default compiler flags, used in CMake toolchain file, openssl and pkg-config build
105- SPC_DEFAULT_C_FLAGS =" -fPIC -Os "
105+ SPC_DEFAULT_C_FLAGS =" -fPIC -O3 -pipe -fno-plt -fno-semantic-interposition -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffunction-sections -fdata-sections "
106106SPC_DEFAULT_CXX_FLAGS =" ${SPC_DEFAULT_C_FLAGS}"
107107SPC_DEFAULT_LD_FLAGS =" -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -Wl,-z,noexecstack -Wl,--gc-sections"
108108; upx executable path
@@ -142,7 +142,7 @@ CXX=${SPC_DEFAULT_CXX}
142142AR =${SPC_DEFAULT_AR}
143143LD =${SPC_DEFAULT_LD}
144144; default compiler flags, used in CMake toolchain file, openssl and pkg-config build
145- SPC_DEFAULT_C_FLAGS =" --target=${MAC_ARCH}-apple-darwin -Os "
145+ SPC_DEFAULT_C_FLAGS =" --target=${MAC_ARCH}-apple-darwin -fPIC -O3 -fno-plt -fno-semantic-interposition -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffunction-sections -fdata-sections "
146146SPC_DEFAULT_CXX_FLAGS =" ${SPC_DEFAULT_C_FLAGS}"
147147SPC_DEFAULT_LD_FLAGS =" -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -Wl,-z,noexecstack -Wl,--gc-sections"
148148; phpmicro patches, for more info, see: https://github.com/easysoft/phpmicro/tree/master/patches
0 commit comments