diff options
author | gregor herrmann <gregoa@debian.org> | 2014-06-20 17:50:25 +0200 |
---|---|---|
committer | gregor herrmann <gregoa@debian.org> | 2014-06-20 17:50:25 +0200 |
commit | 927f30a4ae3e3b22895f3ed6d74382ad683856f8 (patch) | |
tree | 3a194264c2f591f8e3042d53437daaf2f55586af /inc | |
parent | a36c0fba9edcded3522c425cd2d1d0a823425556 (diff) |
Imported Upstream version 0.69
Diffstat (limited to 'inc')
-rw-r--r-- | inc/MyBuilder.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/MyBuilder.pm b/inc/MyBuilder.pm index 845dc43..f234489 100644 --- a/inc/MyBuilder.pm +++ b/inc/MyBuilder.pm @@ -33,7 +33,7 @@ sub ACTION_install { my $linux = Config::AutoConf->check_prog("ldconfig"); system $linux if (-x $linux); } - if ($^O =~ /(?:linux|bsd|sun|sol|dragonfly|hpux|irix|darwin)/ + if ($^O =~ /(?:linux|bsd|sun|sol|dragonfly|hpux|irix|darwin|gnu)/ && $usrlib !~ m!^/usr(/local)?/lib/?$!) { @@ -168,6 +168,7 @@ sub ACTION_create_objects { $object =~ s/\.c/.o/; next if $self->up_to_date($file, $object); $cbuilder->compile(object_file => $object, + extra_compiler_flags=>["-D_FORTIFY_SOURCE=1"], source => $file, include_dirs => ["btparse/src"]); } @@ -339,7 +340,7 @@ sub ACTION_test { if ($^O =~ /darwin/i) { $ENV{DYLD_LIBRARY_PATH} = catdir($self->blib, "usrlib"); } - elsif ($^O =~ /(?:linux|bsd|sun|sol|dragonfly|hpux|irix)/i) { + elsif ($^O =~ /(?:linux|bsd|sun|sol|dragonfly|hpux|irix|gnu)/i) { $ENV{LD_LIBRARY_PATH} = catdir($self->blib, "usrlib"); } elsif ($^O =~ /aix/i) { |