File tree Expand file tree Collapse file tree 4 files changed +2
-5
lines changed
Expand file tree Collapse file tree 4 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 155155# Apply env in temp env file
156156echo ' SPC_DEFAULT_C_FLAGS=-fPIC' > /tmp/spc-gnu-docker.env
157157echo ' SPC_LIBC=glibc' >> /tmp/spc-gnu-docker.env
158- echo ' SPC_CMD_VAR_PHP_MAKE_EXTRA_LDFLAGS_PROGRAM="-Wl,-O1 -pie"' >> /tmp/spc-gnu-docker.env
159158
160159# Environment variable passthrough
161160ENV_LIST=" "
Original file line number Diff line number Diff line change @@ -119,8 +119,6 @@ SPC_CMD_VAR_PHP_CONFIGURE_LDFLAGS="-L${BUILD_LIB_PATH}"
119119SPC_CMD_VAR_PHP_MAKE_EXTRA_CFLAGS =" -g -fstack-protector-strong -fno-ident -fPIE ${SPC_DEFAULT_C_FLAGS}"
120120; EXTRA_LDFLAGS for `make` php, can use -release to set a soname for libphp.so
121121SPC_CMD_VAR_PHP_MAKE_EXTRA_LDFLAGS =" "
122- ; EXTRA_LDFLAGS_PROGRAM for `make` php
123- SPC_CMD_VAR_PHP_MAKE_EXTRA_LDFLAGS_PROGRAM =" -all-static -pie"
124122
125123[macos]
126124; build target: macho or macho (possibly we could support macho-universal in the future)
Original file line number Diff line number Diff line change @@ -331,7 +331,7 @@ private function getMakeExtraVars(): array
331331 'EXTRA_CFLAGS ' => getenv ('SPC_CMD_VAR_PHP_MAKE_EXTRA_CFLAGS ' ),
332332 'EXTRA_LIBS ' => getenv ('SPC_EXTRA_LIBS ' ) . ' ' . SPCTarget::getRuntimeLibs (),
333333 'EXTRA_LDFLAGS ' => getenv ('SPC_CMD_VAR_PHP_MAKE_EXTRA_LDFLAGS ' ),
334- 'EXTRA_LDFLAGS_PROGRAM ' => getenv ( ' SPC_CMD_VAR_PHP_MAKE_EXTRA_LDFLAGS_PROGRAM ' ) ,
334+ 'EXTRA_LDFLAGS_PROGRAM ' => SPCTarget:: isStatic () ? ' -all-static -pie ' : ' -pie ' ,
335335 ];
336336 }
337337
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public function checkZig(): CheckResult
3838 * @throws WrongUsageException
3939 */
4040 #[AsFixItem('install-zig ' )]
41- public function fixMuslCrossMake (): bool
41+ public function installZig (): bool
4242 {
4343 $ arch = arch2gnu (php_uname ('m ' ));
4444 $ os = match (PHP_OS_FAMILY ) {
You can’t perform that action at this time.
0 commit comments