$NetBSD: patch-aa,v 1.5 2016/08/09 00:01:14 wen Exp $ Trick perl into emitting use of -lgmp. Actual library location will be handled via buildlink / wrapper. --- Makefile.PL.orig 2016-08-08 23:57:46.000000000 +0000 +++ Makefile.PL @@ -33,6 +33,6 @@ WriteMakefile TEST_REQUIRES => { Test::More => 0.47, }, - 'LIBS' => ['-lgmp'], + 'LIBS' => ["-L$ENV{PREFIX}/lib -lgmp"], 'SIGN' => 1, );