mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
add buildroot bin PATH
This commit is contained in:
parent
c8fa767576
commit
dfdeab70f1
@ -78,6 +78,7 @@ class LinuxBuilder extends BuilderBase
|
||||
...$vars,
|
||||
'CC' => $this->getOption('cc'),
|
||||
'CXX' => $this->getOption('cxx'),
|
||||
'PATH' => BUILD_ROOT_PATH . '/bin:' . getenv('PATH'),
|
||||
]);
|
||||
// cross-compile does not support yet
|
||||
/*if (php_uname('m') !== $this->arch) {
|
||||
@ -158,6 +159,7 @@ class LinuxBuilder extends BuilderBase
|
||||
'CXX' => $this->getOption('cxx'),
|
||||
'CFLAGS' => $cflags,
|
||||
'LIBS' => '-ldl -lpthread',
|
||||
'PATH' => BUILD_ROOT_PATH . '/bin:' . getenv('PATH'),
|
||||
]);
|
||||
|
||||
SourcePatcher::patchBeforeBuildconf($this);
|
||||
|
||||
@ -53,6 +53,7 @@ class MacOSBuilder extends BuilderBase
|
||||
'CC' => $this->getOption('cc'),
|
||||
'CXX' => $this->getOption('cxx'),
|
||||
'CFLAGS' => "{$this->arch_c_flags} -Wimplicit-function-declaration -Os",
|
||||
'PATH' => BUILD_ROOT_PATH . '/bin:' . getenv('PATH'),
|
||||
]);
|
||||
|
||||
// create pkgconfig and include dir (some libs cannot create them automatically)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user