Blob Blame History Raw
diff -up PDL-2.021/Makefile.PL.test PDL-2.021/Makefile.PL
--- PDL-2.021/Makefile.PL.test	2019-12-29 00:08:52.000000000 +0100
+++ PDL-2.021/Makefile.PL	2020-03-02 09:22:18.014217403 +0100
@@ -597,7 +597,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/;