mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
add cflags and ldflags to frankenphp build
This commit is contained in:
parent
ef3025798d
commit
2ed8bbf391
@ -282,8 +282,8 @@ abstract class UnixBuilderBase extends BuilderBase
|
||||
$config = (new SPCConfigUtil($this))->config($this->ext_list, $this->lib_list);
|
||||
$env = [
|
||||
'CGO_ENABLED' => '1',
|
||||
'CGO_CFLAGS' => $config['cflags'],
|
||||
'CGO_LDFLAGS' => "{$staticFlags} {$config['ldflags']} {$config['libs']} {$lrt}",
|
||||
'CGO_CFLAGS' => $this->arch_c_flags . ' ' . $config['cflags'],
|
||||
'CGO_LDFLAGS' => $this->arch_ld_flags . " {$staticFlags} {$config['ldflags']} {$config['libs']} {$lrt} -lgcov",
|
||||
'XCADDY_GO_BUILD_FLAGS' => '-buildmode=pie ' .
|
||||
'-ldflags \"-linkmode=external ' . $extLdFlags . ' ' . $debugFlags .
|
||||
'-X \'github.com/caddyserver/caddy/v2.CustomVersion=FrankenPHP ' .
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user