Permalink
Browse files

CompileTest.pm: do not hardcode compiler flags

  • Loading branch information...
1 parent 12d3d05 commit c7bc301554469abf2da3988a29edbf6cb5ffd20b @ghedo committed Sep 25, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 t/CompileTest.pm
View
@@ -5,10 +5,12 @@ use warnings;
use Config;
-my $cc = $Config{ccname};
+my $cc = $Config{ccname}.' '.$Config{lddlflags}.' '.$Config{cccdlflags};
sub compile {
my ($file, $out) = @_;
- system($cc, '-shared', '-fPIC', '-o', $out, $file);
+ $cc .= " -o $out $file";
+
+ system $cc;
}

0 comments on commit c7bc301

Please sign in to comment.