Skip to content

Commit d54e393

Browse files
committed
better performance and debugging defaults
1 parent aecc227 commit d54e393

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

config/env.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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)
100100
CC=${SPC_DEFAULT_CC}
101101
CXX=${SPC_DEFAULT_CXX}
102102
AR=${SPC_DEFAULT_AR}
103103
LD=${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"
106106
SPC_DEFAULT_CXX_FLAGS="${SPC_DEFAULT_C_FLAGS}"
107107
SPC_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}
142142
AR=${SPC_DEFAULT_AR}
143143
LD=${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"
146146
SPC_DEFAULT_CXX_FLAGS="${SPC_DEFAULT_C_FLAGS}"
147147
SPC_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

Comments
 (0)