]> git.sesse.net Git - vlc/commitdiff
contribs: fixed linking on Snow Leopard
authorFelix Paul Kühne <fkuehne@videolan.org>
Tue, 1 Sep 2009 14:54:07 +0000 (16:54 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Tue, 1 Sep 2009 17:22:16 +0000 (19:22 +0200)
As libiconv.la is no longer present on Snow Leopard, we need to remove any references to it.

extras/contrib/Makefile
extras/contrib/bootstrap

index 2853381b809b50f4e2571d5a4f299f968d7b8e7d..930b5bc082f8f8a4b2fd02e853ba334866c21e72 100644 (file)
@@ -38,6 +38,9 @@ all: $(TARGETALL)
 
 using-src:
        $(MAKE) -C src
+ifdef HAVE_DARWIN_10
+       (cd $(PREFIX)/lib && sed -e 's%/usr/lib/libiconv.la%$(PREFIX)/lib/libiconv.la%' -i.orig *.la && rm -f *.la.orig)
+endif
 
 # shortcut
 src: using-src
@@ -59,6 +62,11 @@ using-bin: contrib-macosx-$(ARCH)-$(CONTRIBREV).tar.bz2
        (cd tmp && find . -type d) | while read dir; do mkdir -p -- "$$dir"; done
        (cd tmp && find . -not -type d) | while read i; do mv -f -- tmp/"$$i" "$$i"; done
        rm -rf tmp
+    # libiconv.la is no longer present on Snow Leopard, so fix possible references to it, which would
+    # result in linking issues
+ifdef HAVE_DARWIN_10
+       (cd $(PREFIX)/lib && sed -e 's%/usr/lib/libiconv.la%$(PREFIX)/lib/libiconv.la%' -i.orig *.la && rm -f *.la.orig)
+endif
 endif
 
 clean-src:
index 749541e229d01c95e9435ac67d1444b60f7a9967..ee7ba0d5fb2d193a7a16cb2dba6c16a429a0b73d 100755 (executable)
@@ -162,6 +162,9 @@ case $HOST in
             echo "ERROR:\nYour Developer Tools' SDKs were not found.\nYou need to add extra symbolic links to /Developer to achieve correctly\nbuilt contribs.\nHave a look at the OSX-Compile-HOWTO for details." >&2
             exit 1
         fi
+        if test $HOST="i686-apple-darwin10"; then
+            echo "HAVE_DARWIN_10 = 1" >> config.mak
+        fi
     ;;
     x86_64-apple-darwin*)
         SDK_TARGET=10.5
@@ -189,6 +192,9 @@ case $HOST in
             echo "ERROR:\nYour Developer Tools' SDKs were not found.\nYou need to add extra symbolic links to /Developer to achieve correctly\nbuilt contribs.\nHave a look at the OSX-Compile-HOWTO for details." >&2
             exit 1
         fi
+        if test $HOST="x86_64-apple-darwin10"; then
+            echo "HAVE_DARWIN_10 = 1" >> config.mak
+        fi
     ;;
     *mingw32ce)
         echo "HAVE_WINCE = 1" >> config.mak