openbsd-ports/math/p5-Math-GMPz/patches/patch-Random_Makefile_PL

15 lines
383 B
Plaintext

Index: Random/Makefile.PL
--- Random/Makefile.PL.orig
+++ Random/Makefile.PL
@@ -11,8 +11,8 @@ my %options = %{
'../typemap'
],
'NAME' => 'Math::GMPz::Random',
- 'LIBS' => $LIBS,
- 'INC' => $INC,
+ 'LIBS' => ["$ENV{LDFLAGS} -lgmp"],
+ 'INC' => "$ENV{CPPFLAGS}",
'DEFINE' => $DEFS,
'VERSION_FROM' => 'Random.pm'
}