build: Fix rpath not getting set for perl plugin

Some distros of perl pass an rpath so we shouldn't ignore it.
Other junk comes with it but oh well.
This commit is contained in:
Patrick Griffis 2017-06-14 23:29:50 -04:00
parent 0e5eda7de8
commit 67adfa6f54

View File

@ -38,7 +38,7 @@ if ret.returncode() != 0
endif
perl_ldflags = []
foreach flag : ret.stdout().strip().split(' ')
if flag.startswith('-L') or flag.startswith('-l')
if flag.startswith('-L') or flag.startswith('-l') or flag.startswith('-Wl')
perl_ldflags += flag
endif
endforeach