openbsd-ports/math/p5-Math-BigInt-GMP/patches/patch-Makefile_PL

12 lines
368 B
Plaintext
Raw Normal View History

$OpenBSD: patch-Makefile_PL,v 1.2 2008/10/29 11:39:36 jasper Exp $
--- Makefile.PL.orig Wed Jul 25 20:13:12 2007
+++ Makefile.PL Wed Oct 29 11:34:58 2008
@@ -49,5 +49,6 @@ WriteMakefile(
Math::BigInt => 1.87,
XSLoader => 0.02,
},
- 'LIBS' => ['-lgmp'],
+ 'LIBS' => ["$ENV{LDFLAGS} -lgmp"], # e.g., '-lm'
+ 'INC' => "$ENV{CPPFLAGS}",
);