diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 0cc277a4..2bdf5aed 100644 --- a/configure.ac +++ b/configure.ac @@ -427,10 +427,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 |