ensure that the proper include path is picked up; ok maintainer

This commit is contained in:
naddy 2003-10-18 10:30:26 +00:00
parent 66686a87ad
commit 2f50b71fe1

View File

@ -1,11 +1,12 @@
$OpenBSD: patch-Makefile_PL,v 1.2 2002/09/21 11:59:39 avsm Exp $
--- Makefile.PL.orig Mon Feb 18 02:39:39 2002
+++ Makefile.PL Wed Sep 18 10:57:43 2002
@@ -5,6 +5,6 @@ use ExtUtils::MakeMaker;
$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'
);