build - fix cc.links for bsd case to use args not link args

@fix
This commit is contained in:
Carsten Haitzler 2022-02-02 18:17:58 +00:00
parent 6ed1e61996
commit 2eb76774ef
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ suid_ldflags = []
dep_crypt = [] dep_crypt = []
if freebsd == true or host_machine.system().startswith('pcbsd') if freebsd == true or host_machine.system().startswith('pcbsd')
dep_crypt = cc.find_library('crypt', required: true) dep_crypt = cc.find_library('crypt', required: true)
if cc.links('', args: '-fPIE', link_args: '-pie') == true if cc.links('', args: ['-fPIE', '-pie']) == true
suid_cflags = '-fPIE' suid_cflags = '-fPIE'
suid_ldflags = '-pie' suid_ldflags = '-pie'
endif endif