diff -Nurd -x'*~' Graphics-Potrace-0.76.orig/Makefile.PL Graphics-Potrace-0.76/Makefile.PL
--- Graphics-Potrace-0.76.orig/Makefile.PL	2016-09-12 16:14:07.000000000 -0400
+++ Graphics-Potrace-0.76/Makefile.PL	2017-03-05 05:01:18.000000000 -0500
@@ -6,7 +6,7 @@
 use ExtUtils::MakeMaker 0;
 
 use Devel::CheckLib;
-check_lib_or_exit( lib => 'potrace', header => 'potracelib.h' );
+check_lib_or_exit( lib => 'potrace', header => 'potracelib.h', INC => '-I@PREFIX@/include', LIBS => '-L@PREFIX@/lib', debug => 1 );
 
 my %WriteMakefileArgs = (
   "ABSTRACT" => "bindings to the potrace library",
@@ -15,9 +15,9 @@
     "Devel::CheckLib" => "1.01"
   },
   "DISTNAME" => "Graphics-Potrace",
-  "INC" => "",
+  "INC" => "-I@PREFIX@/include",
   "LIBS" => [
-    "-lpotrace"
+    "-L@PREFIX@/lib -lpotrace"
   ],
   "LICENSE" => "artistic_2",
   "META_MERGE" => {