Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.