suboptimal solutions, but a bit closer to building

This commit is contained in:
DubbleClick
2025-06-23 12:57:00 +07:00
parent 955b586908
commit 7628847a46
6 changed files with 7 additions and 5 deletions

View File

@@ -348,7 +348,7 @@ abstract class UnixBuilderBase extends BuilderBase
'GOPATH' => PKG_ROOT_PATH . '/go',
'CGO_ENABLED' => '1',
'CGO_CFLAGS' => $config['cflags'],
'CGO_LDFLAGS' => "{$config['ldflags']} {$config['libs']} {$lrt}",
'CGO_LDFLAGS' => "{$config['ldflags']} {$config['libs']} {$lrt} -L/usr/lib64",
'XCADDY_GO_BUILD_FLAGS' => '-buildmode=pie ' .
'-ldflags \"-linkmode=external ' . $extLdFlags . ' ' . $debugFlags .
'-X \'github.com/caddyserver/caddy/v2.CustomVersion=FrankenPHP ' .