File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ public function buildPHP(int $build_target = BUILD_TARGET_NONE): void
100
100
// $musl_flag = SPCTarget::getLibc() === 'musl' ? ' -D__MUSL__' : ' -U__MUSL__';
101
101
$ php_configure_env = SystemUtil::makeEnvVarString ([
102
102
'CFLAGS ' => getenv ('SPC_CMD_VAR_PHP_CONFIGURE_CFLAGS ' ),
103
- 'CPPFLAGS ' => '-I ' . BUILD_INCLUDE_PATH , // . $musl_flag,
103
+ 'CPPFLAGS ' => '-I ' . BUILD_INCLUDE_PATH . ' -Dsomethinghere ' , // . $musl_flag,
104
104
'LDFLAGS ' => '-L ' . BUILD_LIB_PATH ,
105
105
// 'LIBS' => SPCTarget::getRuntimeLibs(), // do not pass static libraries here yet, they may contain polyfills for libc functions!
106
106
]);
@@ -359,7 +359,7 @@ private function getMakeExtraVars(): array
359
359
$ static = SPCTarget::isStatic () ? '-all-static ' : '' ;
360
360
$ lib = BUILD_LIB_PATH ;
361
361
return [
362
- // 'CPPFLAGS' => SPCTarget::getLibc() === 'musl' ? '-D__MUSL__' : '-U__MUSL__ ',
362
+ 'CPPFLAGS ' => ' -Dsomethinghere ' ,
363
363
'EXTRA_CFLAGS ' => getenv ('SPC_CMD_VAR_PHP_MAKE_EXTRA_CFLAGS ' ),
364
364
'EXTRA_LIBS ' => $ config ['libs ' ],
365
365
'EXTRA_LDFLAGS ' => getenv ('SPC_CMD_VAR_PHP_MAKE_EXTRA_LDFLAGS ' ),
Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ public static function patchBeforeBuildconf(BuilderBase $builder): void
87
87
}
88
88
89
89
// patch configure.ac
90
+ /*
90
91
$musl = SPCTarget::getLibc() === 'musl';
91
92
FileSystem::replaceFileStr(
92
93
SOURCE_PATH . '/php-src/configure.ac',
@@ -96,6 +97,7 @@ public static function patchBeforeBuildconf(BuilderBase $builder): void
96
97
if (getenv('SPC_LIBC') === false && ($libc = SPCTarget::getLibc()) !== null) {
97
98
putenv("SPC_LIBC={$libc}");
98
99
}
100
+ */
99
101
100
102
// patch php-src/build/php.m4 PKG_CHECK_MODULES -> PKG_CHECK_MODULES_STATIC
101
103
FileSystem::replaceFileStr (SOURCE_PATH . '/php-src/build/php.m4 ' , 'PKG_CHECK_MODULES( ' , 'PKG_CHECK_MODULES_STATIC( ' );
You can’t perform that action at this time.
0 commit comments