mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 17:35:36 +08:00
dont patch out configure command
This commit is contained in:
@@ -321,20 +321,6 @@ class SourcePatcher
|
|||||||
logger()->info("Library [{$lib->getName()}] patched before make");
|
logger()->info("Library [{$lib->getName()}] patched before make");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (str_contains((string) getenv('SPC_CMD_VAR_PHP_MAKE_EXTRA_LDFLAGS'), '-release')) {
|
|
||||||
FileSystem::replaceFileLineContainsString(
|
|
||||||
SOURCE_PATH . '/php-src/ext/standard/info.c',
|
|
||||||
'#ifdef CONFIGURE_COMMAND',
|
|
||||||
'#ifdef NO_CONFIGURE_COMMAND',
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
FileSystem::replaceFileLineContainsString(
|
|
||||||
SOURCE_PATH . '/php-src/ext/standard/info.c',
|
|
||||||
'#ifdef NO_CONFIGURE_COMMAND',
|
|
||||||
'#ifdef CONFIGURE_COMMAND',
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function patchHardcodedINI(array $ini = []): bool
|
public static function patchHardcodedINI(array $ini = []): bool
|
||||||
|
|||||||
Reference in New Issue
Block a user