Changeset 98792


Ignore:
Timestamp:
Oct 16, 2012, 9:58:38 AM (12 years ago)
Author:
jmr@…
Message:

p5-locale-gettext: re-fix handling of archflags broken by r94981 (#28789, #19381)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/perl/p5-locale-gettext/files/patch-Makefile.PL

    r76661 r98792  
    1 --- gettext-1.05/Makefile.PL.orig       2008-12-12 11:20:06.000000000 -0800
    2 +++ gettext-1.05/Makefile.PL    2008-12-12 11:20:25.000000000 -0800
    3 @@ -35,6 +35,8 @@
     1--- gettext-1.05/Makefile.PL.orig       2005-01-31 10:30:22.000000000 +1100
     2+++ gettext-1.05/Makefile.PL    2012-10-03 15:45:12.000000000 +1000
     3@@ -7,6 +7,10 @@
     4 } else {
     5        $cc = $Config{'cc'};
     6 }
     7+my $cflags = '';
     8+if (defined($ENV{'CFLAGS'})) {
     9+       $cflags = $ENV{'CFLAGS'};
     10+}
     11 my $libs = '';
     12 
     13 unless (conftest("char *x = gettext(\"foo\");", "gettext", 0)) {
     14@@ -35,6 +39,8 @@
    415     NAME => "Locale::gettext",
    516     LIBS => ($libs eq '') ? [] : [$libs],
     
    1021 
    1122 sub conftest {
     23@@ -50,7 +56,7 @@
     24        close TEST;
     25        open(SAVE, ">&STDERR");
     26        open(STDERR, ">/dev/null");
     27-       system($cc . " -o conftest " . $libs . " conftest.c");
     28+       system($cc . " " . $cflags  . " -o conftest " . $libs . " conftest.c");
     29        my $exitstatus = $?;
     30        open(STDERR, ">&SAVE");
     31        if ($exitstatus != 0) {
Note: See TracChangeset for help on using the changeset viewer.