comparison configure @ 36215:4eb27365d0b0

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.
author reimar
date Sun, 09 Jun 2013 13:54:47 +0000
parents 236179a10ee9
children 2af48d236902
comparison
equal deleted inserted replaced
36214:fc128e175f72 36215:4eb27365d0b0
3937 } 3937 }
3938 return 0; 3938 return 0;
3939 } 3939 }
3940 EOF 3940 EOF
3941 _iconv=no 3941 _iconv=no
3942 for ld_tmp in "" "-liconv" "-liconv $ld_dl" ; do 3942 # NOTE: -L/usr/lib is a hack to avoid issues due to a
3943 # broken libiconv that e.g. macports installs into /opt/local/lib
3944 # which might get addded to the search path later by e.g. SDL
3945 for ld_tmp in "" "-L/usr/lib -liconv" "-liconv" "-liconv $ld_dl" ; do
3943 cc_check $ld_tmp && extra_ldflags="$extra_ldflags $ld_tmp" && 3946 cc_check $ld_tmp && extra_ldflags="$extra_ldflags $ld_tmp" &&
3944 ld_iconv="$ld_tmp" && _iconv=yes && break 3947 ld_iconv="$ld_tmp" && _iconv=yes && break
3945 done 3948 done
3946 fi 3949 fi
3947 if test "$_iconv" = yes ; then 3950 if test "$_iconv" = yes ; then