Skip to content

Instantly share code, notes, and snippets.

@wchristian
Created March 10, 2013 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wchristian/6c016d802b806923cd26 to your computer and use it in GitHub Desktop.
Save wchristian/6c016d802b806923cd26 to your computer and use it in GitHub Desktop.
Makefile.PL | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Makefile.PL b/Makefile.PL
index bf01745..5bc299e 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -305,7 +305,7 @@ if (!defined $config{LIBS} || $config{LIBS} !~ /\-l(?:lib)?xml2\b/) {
$config_LIBS_alternatives = [
map { "$l $_" }
q/ -lxml2 -lzlib/,
- q/ -llibxml2 -lzlib -llibgettextlib.dll/
+ q/ -llibxml2 -lzlib /
];
$config{LIBS} = $config_LIBS_alternatives->[-1];
}
@@ -432,6 +432,8 @@ DEATH
}
}
+$config{LIBS} .= " -llibgettextlib.dll" if $is_Win32 and !$ENV{ACTIVEPERL_MINGW};
+
# -------------------------------------------------------------------------- #
# _NOW_ write the Makefile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment