We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef30257 commit 2ed8bbfCopy full SHA for 2ed8bbf
src/SPC/builder/unix/UnixBuilderBase.php
@@ -282,8 +282,8 @@ protected function buildFrankenphp(): void
282
$config = (new SPCConfigUtil($this))->config($this->ext_list, $this->lib_list);
283
$env = [
284
'CGO_ENABLED' => '1',
285
- 'CGO_CFLAGS' => $config['cflags'],
286
- '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",
287
'XCADDY_GO_BUILD_FLAGS' => '-buildmode=pie ' .
288
'-ldflags \"-linkmode=external ' . $extLdFlags . ' ' . $debugFlags .
289
'-X \'github.com/caddyserver/caddy/v2.CustomVersion=FrankenPHP ' .
0 commit comments