mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-02 04:20:28 +00:00
Ports: Unset env vars after configure in php
These environment variables would linger after the `php` port was done building. This would pose issues in the future if other ports depend on this package, since these vars then leak into the build scripts.
This commit is contained in:
parent
40737341a8
commit
11f1753be1
Notes:
sideshowbarker
2024-07-17 21:28:42 +09:00
Author: https://github.com/gmta Commit: https://github.com/SerenityOS/serenity/commit/11f1753be14 Pull-request: https://github.com/SerenityOS/serenity/pull/11712
1 changed files with 25 additions and 10 deletions
|
@ -22,13 +22,28 @@ launcher_command="/usr/local/bin/php -a"
|
|||
launcher_run_in_terminal="true"
|
||||
icon_file="win32/build/php.ico"
|
||||
|
||||
export CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/libxml2"
|
||||
export LIBS="-ldl"
|
||||
export LIBXML_CFLAGS="y"
|
||||
export LIBXML_LIBS="-lxml2"
|
||||
export OPENSSL_CFLAGS="y"
|
||||
export OPENSSL_LIBS="-lssl -lcrypto"
|
||||
export SQLITE_CFLAGS="y"
|
||||
export SQLITE_LIBS="-lsqlite3 -lpthread"
|
||||
export ZLIB_CFLAGS="y"
|
||||
export ZLIB_LIBS="-lz"
|
||||
pre_configure() {
|
||||
export CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/libxml2"
|
||||
export LIBS="-ldl"
|
||||
export LIBXML_CFLAGS="y"
|
||||
export LIBXML_LIBS="-lxml2"
|
||||
export OPENSSL_CFLAGS="y"
|
||||
export OPENSSL_LIBS="-lssl -lcrypto"
|
||||
export SQLITE_CFLAGS="y"
|
||||
export SQLITE_LIBS="-lsqlite3 -lpthread"
|
||||
export ZLIB_CFLAGS="y"
|
||||
export ZLIB_LIBS="-lz"
|
||||
}
|
||||
|
||||
post_configure() {
|
||||
unset ZLIB_LIBS
|
||||
unset ZLIB_CFLAGS
|
||||
unset SQLITE_LIBS
|
||||
unset SQLITE_CFLAGS
|
||||
unset OPENSSL_LIBS
|
||||
unset OPENSSL_CFLAGS
|
||||
unset LIBXML_LIBS
|
||||
unset LIBS
|
||||
unset LIBXML_CFLAGS
|
||||
unset CFLAGS
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue