mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04:00
Merge pull request #1071 from ailin-nemui/meson-perl
carry rpath to working perl test
This commit is contained in:
commit
66ac295818
@ -246,6 +246,7 @@ have_perl = false
|
|||||||
if want_perl
|
if want_perl
|
||||||
perl_cflags = []
|
perl_cflags = []
|
||||||
perl_ldflags = []
|
perl_ldflags = []
|
||||||
|
perl_rpath_flags = []
|
||||||
perl_rpath = ''
|
perl_rpath = ''
|
||||||
|
|
||||||
#### ccopts ####
|
#### ccopts ####
|
||||||
@ -265,6 +266,7 @@ if want_perl
|
|||||||
if not fl.startswith('-A') and not skip_libs.contains(fl)
|
if not fl.startswith('-A') and not skip_libs.contains(fl)
|
||||||
if fl.startswith('-Wl,-rpath,')
|
if fl.startswith('-Wl,-rpath,')
|
||||||
perl_rpath = fl.split(',')[2]
|
perl_rpath = fl.split(',')[2]
|
||||||
|
perl_rpath_flags += fl
|
||||||
else
|
else
|
||||||
perl_ldflags += fl
|
perl_ldflags += fl
|
||||||
endif
|
endif
|
||||||
@ -283,7 +285,8 @@ int main()
|
|||||||
perl_alloc();
|
perl_alloc();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
''', args : perl_cflags + perl_ldflags, name : 'working Perl support').compiled()
|
''', args : perl_cflags + perl_ldflags + perl_rpath_flags,
|
||||||
|
name : 'working Perl support').compiled()
|
||||||
if require_perl
|
if require_perl
|
||||||
error('error linking with perl libraries')
|
error('error linking with perl libraries')
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user