Skip to content

Commit

Permalink
target = x86_64, arch = x86-64
Browse files Browse the repository at this point in the history
  • Loading branch information
jhheider committed Oct 2, 2023
1 parent 390d8a8 commit c013bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libexec/stage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ if (host().platform == 'darwin') env['MACOSX_DEPLOYMENT_TARGET'] = ['11.0']
env['PATH'] ??= []
env['PATH'].push("/usr/bin", "/bin", "/usr/sbin", "/sbin", useConfig().prefix.join('pkgx.sh/v*/bin').string)

if (host().platform == 'linux' && host().target == 'x86-64') {
if (host().platform == 'linux' && host().arch == 'x86-64') {
env['LDFLAGS'] = [`${env['LDFLAGS']?.[0] ?? ''} -pie`.trim()]
env['CFLAGS'] = [`${env['CFLAGS']?.[0] ?? ''} -fPIC`.trim()]
env['CXXFLAGS'] = [`${env['CXXFLAGS']?.[0] ?? ''} -fPIC`.trim()]
Expand Down

0 comments on commit c013bf7

Please sign in to comment.