Skip to content

Commit

Permalink
Fix #2832120: cilly does not pass linker flags
Browse files Browse the repository at this point in the history
The "-Wl," wrapper for linker flags used to be stripped, which caused
linker flags to be ignored.

The new behaviour preserves "-Wl,".  Note that this might break library
linking (when ld is called directly by cilly); no idea how to fix that
currently.
  • Loading branch information
kerneis committed Oct 28, 2011
1 parent 01d8604 commit 5276d40
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/Cilly.pm.in
Original file line number Diff line number Diff line change
Expand Up @@ -1956,12 +1956,7 @@ sub new {
# EARLY_PREPROC
'-Wp,' => { TYPE => 'EARLY_PREPROC' },
'-Wl,--(no-)?whole-archive$' => { TYPE => 'OSOURCE' },
'-Wl,' =>
{ RUN => sub {
my ($linkargs) = ($_[1] =~ m|-Wl,(.*)$|);
#Split up the args
push @{$stub->{LINKARGS}}, split(/,/, $linkargs);
}},
'-Wl,' => { TYPE => 'LINK' },

# Warning Options
"-pedantic\$" => { TYPE => 'ALLARGS' },
Expand Down

0 comments on commit 5276d40

Please sign in to comment.