Refs #99. c_check/f_check: strip quotes from detected flags
This commit is contained in:
parent
006200c9a4
commit
c8a5d4b86f
2
c_check
2
c_check
|
@ -174,6 +174,8 @@ $linker_a = "";
|
||||||
$link =~ s/\-Y\sP\,/\-Y/g;
|
$link =~ s/\-Y\sP\,/\-Y/g;
|
||||||
|
|
||||||
@flags = split(/[\s\,\n]/, $link);
|
@flags = split(/[\s\,\n]/, $link);
|
||||||
|
# remove leading and trailing quotes from each flag.
|
||||||
|
@flags = map {s/^['"]|['"]$//g; $_} @flags;
|
||||||
|
|
||||||
foreach $flags (@flags) {
|
foreach $flags (@flags) {
|
||||||
if (
|
if (
|
||||||
|
|
2
f_check
2
f_check
|
@ -237,6 +237,8 @@ if ($link ne "") {
|
||||||
$link =~ s/\-rpath\s+/\-rpath\@/g;
|
$link =~ s/\-rpath\s+/\-rpath\@/g;
|
||||||
|
|
||||||
@flags = split(/[\s\,\n]/, $link);
|
@flags = split(/[\s\,\n]/, $link);
|
||||||
|
# remove leading and trailing quotes from each flag.
|
||||||
|
@flags = map {s/^['"]|['"]$//g; $_} @flags;
|
||||||
|
|
||||||
foreach $flags (@flags) {
|
foreach $flags (@flags) {
|
||||||
if (
|
if (
|
||||||
|
|
Loading…
Reference in New Issue