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

13 lines
508 B
Plaintext

$OpenBSD: patch-Makefile_PL,v 1.3 2003/10/18 10:30:26 naddy Exp $
--- Makefile.PL.orig 2002-02-17 20:39:39.000000000 +0100
+++ Makefile.PL 2003-10-15 22:13:16.000000000 +0200
@@ -5,6 +5,7 @@ use ExtUtils::MakeMaker;
WriteMakefile(
'NAME' => 'Math::GMP',
'VERSION_FROM' => 'lib/Math/GMP.pm', # finds $VERSION
- 'LIBS' => ['-lgmp'], # e.g., '-lm'
+ 'LIBS' => ["$ENV{LDFLAGS} -lgmp"], # e.g., '-lm'
+ 'INC' => "$ENV{CPPFLAGS}",
'DEFINE' => '', # e.g., '-DHAVE_SOMETHING'
);