mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-23 11:45:18 -04:00
28 lines
905 B
Plaintext
28 lines
905 B
Plaintext
$NetBSD: patch-aa,v 1.7 2015/09/23 06:43:48 mef Exp $
|
|
|
|
(1)
|
|
Incompatible change in the newer ExtUtils-MakeMaker:
|
|
It places .o files where the source file lives (lib/File/ in this case),
|
|
whereas the older MakeMaker placed it in the current working dir
|
|
(toplevel in this case).
|
|
|
|
Thanks Matthias Ferdinand
|
|
http://mail-index.netbsd.org/pkgsrc-users/2015/09/19/msg022238.html
|
|
|
|
(2)
|
|
-- Ensure we use the required ldflags for the platform.
|
|
|
|
--- Makefile.PL.orig 2015-09-23 15:35:22.000000000 +0900
|
|
+++ Makefile.PL 2015-09-23 15:36:22.000000000 +0900
|
|
@@ -21,8 +21,8 @@ my %WriteMakefileArgs = (
|
|
},
|
|
"DISTNAME" => "File-LibMagic",
|
|
"INC" => "-I. -Ic",
|
|
- "LDFROM" => "LibMagic\$(OBJ_EXT)",
|
|
- "LIBS" => "-lmagic",
|
|
+ "LDFROM" => "lib/File/LibMagic\$(OBJ_EXT)",
|
|
+ 'LIBS' => "$ENV{LDFLAGS} -lmagic -lz", # e.g., '-lm'
|
|
"LICENSE" => "perl",
|
|
"MIN_PERL_VERSION" => "5.008",
|
|
"NAME" => "File::LibMagic",
|