Ticket #35533: respect-CC.patch

File respect-CC.patch, 991 bytes (added by jmroot (Joshua Root), 9 years ago)
  • Portfile

     
    2121                rmd160  0e932488addc8c164d14c45899cb0432c47bf167
    2222
    2323if {${perl5.major} != ""} {
    24 depends_lib-append  port:expat
     24    patchfiles  inc_Devel_CheckLib.pm.patch
     25    depends_lib-append  port:expat
    2526}
  • files/inc_Devel_CheckLib.pm.patch

     
     1--- inc/Devel/CheckLib.pm.orig  2010-09-14 22:12:52.000000000 +1000
     2+++ inc/Devel/CheckLib.pm       2012-08-25 20:49:18.000000000 +1000
     3@@ -326,6 +326,8 @@
     4 }
     5     
     6 sub _findcc {
     7+    my @cc = split(/\s+/, $ENV{CC});
     8+    return @cc if -x $cc[0];
     9     my @paths = split(/$Config{path_sep}/, $ENV{PATH});
     10     my @cc = split(/\s+/, $Config{cc});
     11     return @cc if -x $cc[0];