1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
Description: Pass -ffile-prefix-map via $cflags to avoid embedding build path.
Author: Vagrant Cascadian <vagrant@reproducible-builds.org>
--- a/Build.PL
+++ b/Build.PL
@@ -1,5 +1,6 @@
use Module::Build;
use strict;
+use Cwd;
# We need to find imlib2-config
my $CONFIG = "imlib2-config";
@@ -20,7 +21,7 @@
}
my $libs = `$CONFIG --libs`;
-my $cflags = "-DX_DISPLAY_MISSING " . `$CONFIG --cflags`;
+my $cflags = "-DX_DISPLAY_MISSING " . `$CONFIG --cflags` . "-ffile-prefix-map=" . getcwd() . "=." ;
my $build = Module::Build->new(
c_source => './lib/Image',
|