Skip to content

Commit

Permalink
CompileTest.pm: do not hardcode compiler flags
Browse files Browse the repository at this point in the history
  • Loading branch information
ghedo committed Sep 25, 2012
1 parent 12d3d05 commit c7bc301
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions t/CompileTest.pm
Expand Up @@ -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.