# HG changeset patch # User reimar # Date 1370786087 0 # Node ID 4eb27365d0b0ea68274b4adb9bae8f6e08fa5c86 # Parent fc128e175f727ed5aff652052fed286d941e27e3 Add hack to fix compilation issues on OSX with broken libiconv. Such a hack is not really a good solution, but since the issue is relatively common it seems worth it for the moment. diff -r fc128e175f72 -r 4eb27365d0b0 configure --- a/configure Sun Jun 09 10:13:08 2013 +0000 +++ b/configure Sun Jun 09 13:54:47 2013 +0000 @@ -3939,7 +3939,10 @@ } EOF _iconv=no - for ld_tmp in "" "-liconv" "-liconv $ld_dl" ; do + # NOTE: -L/usr/lib is a hack to avoid issues due to a + # broken libiconv that e.g. macports installs into /opt/local/lib + # which might get addded to the search path later by e.g. SDL + for ld_tmp in "" "-L/usr/lib -liconv" "-liconv" "-liconv $ld_dl" ; do cc_check $ld_tmp && extra_ldflags="$extra_ldflags $ld_tmp" && ld_iconv="$ld_tmp" && _iconv=yes && break done