As libiconv.la is no longer present on Snow Leopard, we need to remove any references to it.
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
(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:
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
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