diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-03-20 04:49:29 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-03-20 04:49:29 +0000 |
commit | df973921ee43dcc0fcd86f876dbfc5d98283beb4 (patch) | |
tree | c69fc9144231e982bcb4a9f19b765934427b4955 /bin | |
parent | 9f79c156482e5bfa0ca87f5ac151ea034c2e3c06 (diff) | |
download | ATCD-df973921ee43dcc0fcd86f876dbfc5d98283beb4.tar.gz |
inserted ^['"]? at beginning of patterns that check for -l and -L, to make sure they're at the beginning of arguments
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ace_ld | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ace_ld b/bin/ace_ld index 4569fa804c0..f5fd66431e9 100755 --- a/bin/ace_ld +++ b/bin/ace_ld @@ -63,11 +63,11 @@ $current_dir_in_libDirs = 0; @objs = ''; foreach $arg (@ARGV) { - if ($arg =~ /-L([\S]+)/) { + if ($arg =~ /^['"]?-L([\S]+)/) { ($dir = $1) =~ s%/+$%%; #### trim any trailing slashes push (@libDirs, $dir); $current_dir_in_libDirs = 1 if $dir eq '.'; - } elsif ($arg =~ /-l([\S]+)/) { + } elsif ($arg =~ /^['"]?-l([\S]+)/) { push (@libs, $1); } elsif ($arg =~ /\.o$/) { push (@objs, $arg); @@ -129,7 +129,7 @@ if ($munch) { #### Insert ctordtor object file before first library in link command. $arg_lib = 0; foreach $arg (@ARGV) { - if ($arg =~ /-l/) { + if ($arg =~ /^['"]?-l/) { last; } ++$arg_lib; |