Allow for warning-free passing of -Wl options on config command line. One

possible usage is to pass -Wl,-z,-noexecstack on Linux to ensure the stack
is marked non-executable. Well, -Wa,--noexecstack works fine too...
This commit is contained in:
Andy Polyakov 2005-12-16 11:29:19 +00:00
parent 0cb9d93d0c
commit d719e60cb4

View File

@ -724,7 +724,7 @@ PROCESS_ARGS:
} }
elsif (/^[-+]/) elsif (/^[-+]/)
{ {
if (/^-[lL](.*)$/) if (/^-[lL](.*)$/ or /^-Wl,/)
{ {
$libs.=$_." "; $libs.=$_." ";
} }