ports/math/p5-Math-Pari/files/patch-makefile
Mathieu Arnold 484f8d9cd4 Unbreak in the case you did not have -O in your CFLAGS
PR:		55870
Submitted by:	Kevin Oberman <oberman@es.net>
Approved by:	demon (mentor)
2003-08-26 05:30:07 +00:00

18 lines
653 B
Plaintext

--- libPARI/Makefile.PL.orig Thu Apr 24 05:23:32 2003
+++ libPARI/Makefile.PL Thu Aug 21 14:51:06 2003
@@ -137,11 +137,13 @@
$mycflags .= " -DASMINLINE";
}
-$mycflags .= ' -DGCC_INLINE' if $Config{gccversion};
+$mycflags .= ' -O -DGCC_INLINE' if $Config{gccversion};
+$mycflags .= " $ENV{CFLAGS} " if $ENV{CFLAGS};
@obj_files = map { "$_\$(OBJ_EXT)" } keys(%cfiles), qw(kernel mp mpinl);
push @obj_files, 'kernel2$(OBJ_EXT)' if $kernel{converted2};
$mycflags .= " -DDYNAMIC_PLOTTING";
+$mycflags .= " -DDL_DFLT_NAME=\\\"libpari.2.1.3\\\"";
# OMF build needs no underscores:
$mycflags .= " -D__NO_AOUT" if $^O eq 'os2' and !$OS2::is_aout;