Skip to content
Browse files

additional libtool lubrication for windows build

This is related to COUCHDB-1197
Thanks Dave Cottlehuber for the patch

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1166438 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 45a7cb5 commit 778e63e5a7184267a6c430291ba667184b34ae3f @tilgovi tilgovi committed Sep 7, 2011
Showing with 5 additions and 3 deletions.
  1. +5 −3 configure.ac
View
8 configure.ac
@@ -532,10 +532,12 @@ AC_OUTPUT
# PLEASE, someone help put this out of its misery!!
# This hackery is being tracked via COUCHDB-440.
if test x${IS_WINDOWS} = xTRUE; then
- sed -e 's,libname_spec="lib\\$name",libname_spec="\\\$name",' \
+ mv libtool libtool.dist
+ sed -E -e 's,libname_spec="lib\\$name",libname_spec="\\\$name",' \
-e 's,-link,,' \
- < libtool > libtool.tmp
- mv libtool.tmp libtool
+ -e 's/-Xlinker --out-implib -Xlinker \\\$lib//' \
+ -e 's/(-shared -nostdlib)/-dll \1/' \
+ < libtool.dist > libtool
# probably would chmod +x if we weren't on windows...
fi

0 comments on commit 778e63e

Please sign in to comment.
Something went wrong with that request. Please try again.