cheeselee / rpms / perl-PDL

Forked from rpms/perl-PDL 4 years ago
Clone
Blob Blame History Raw
diff -up PDL-2.020/Makefile.PL.orig PDL-2.020/Makefile.PL
--- PDL-2.020/Makefile.PL.orig	2019-12-16 13:55:14.309178392 +0100
+++ PDL-2.020/Makefile.PL	2019-12-16 13:55:57.533953377 +0100
@@ -588,7 +588,7 @@ EOPS
 # support the `$<` variable in explicit rules
 $text .= <<EOT if $^O !~ /MSWin/;
 pdl$Config::Config{exe_ext} : pdl.c
-	\$(CC) \$(CFLAGS) \$(LDFLAGS) \$(CPPFLAGS) pdl.c -o \$\@
+	\$(CC) \$(CFLAGS) -fPIC \$(LDFLAGS) \$(CPPFLAGS) pdl.c -o \$\@
 EOT
 
 $text .= << 'EOT' if $^O =~ /MSWin/;