$NetBSD: patch-aa,v 1.8 2019/01/12 04:21:35 wen Exp $ Trick perl into emitting use of -lgmp. Actual library location will be handled via buildlink / wrapper. --- Makefile.PL.orig 2019-01-12 04:16:30.000000000 +0000 +++ Makefile.PL @@ -49,7 +49,7 @@ WriteMakefile }, 'LICENSE' => 'perl_5', - 'LIBS' => ['-lgmp'], # e.g., '-lm' + 'LIBS' => ['-L$ENV{PREFIX}/lib -lgmp'], # e.g., '-lm' 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING' 'INC' => '', # e.g., '-I/usr/include/other' 'SIGN' => 1,