]> git.sesse.net Git - vlc/blobdiff - bootstrap
Fix memory leak
[vlc] / bootstrap
index b3680144a03f44bdb968b927f6bf8a7a332bf931..06199fd013ff483d1b5e0c7af03d3a799c82ed07 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -227,7 +227,7 @@ include Modules.am
 
 LTLIBVLC = \$(top_builddir)/src/libvlc.la
 
-if BUILD_SHARED
+if HAVE_WIN32
 LIBVLC = -L\$(top_builddir)/src -lvlc
 LIBADD = \$(LIBVLC)
 endif
@@ -448,6 +448,23 @@ if test -f "ltmain.sh"; then
   mv ltmain.sh autotools/
 fi
 
+# patch for DLL link for libtool on cygwin (remove when fixed)
+if test ".`uname -s|sed -n '/^CYGWIN/p'`" != "."; then
+patch -s -p0 << 'EOF'
+--- autotools/ltmain.orig      2006-12-05 15:15:42.064607000 +0000
++++ autotools/ltmain.sh        2006-12-05 15:16:24.705777800 +0000
+@@ -4360,7 +4360,7 @@
+     prog)
+       case $host in
+-      *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
++      *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,;s,.dll.exe$,.dll,'` ;;
+       esac
+       if test -n "$vinfo"; then
+       $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
+EOF
+fi
+
 # Do the rest
 ${autopoint} -f
 ${aclocal} ${ACLOCAL_ARGS}