perl-locale.patch 764 B

1234567891011121314151617181920212223242526272829
  1. Index: gettext-1.04/Makefile.PL
  2. --- gettext-1.04/Makefile.PL.orig 2005-01-31 00:30:22 +0100
  3. +++ gettext-1.04/Makefile.PL 2005-02-06 13:09:56 +0100
  4. @@ -7,6 +7,7 @@
  5. } else {
  6. $cc = $Config{'cc'};
  7. }
  8. +my $incs = '';
  9. my $libs = '';
  10. unless (conftest("char *x = gettext(\"foo\");", "gettext", 0)) {
  11. @@ -33,6 +34,7 @@
  12. WriteMakefile(
  13. NAME => "Locale::gettext",
  14. + INC => ($inc eq '') ? "" : "$incs",
  15. LIBS => ($libs eq '') ? [] : [$libs],
  16. VERSION_FROM => 'gettext.pm',
  17. );
  18. @@ -50,7 +52,7 @@
  19. close TEST;
  20. open(SAVE, ">&STDERR");
  21. open(STDERR, ">/dev/null");
  22. - system($cc . " -o conftest " . $libs . " conftest.c");
  23. + system("$cc $incs -o conftest conftest.c $libs");
  24. my $exitstatus = $?;
  25. open(STDERR, ">&SAVE");
  26. if ($exitstatus != 0) {