configure: Fix problem with linking on OS X 10.7.
Some of the new link commands in the latest ld appear to be buggy and cause
bus error while initializing libSystem. Fixed by reverting to 10.6 linking
behavior.
diff --git a/configure b/configure
index 0fbfd51..3876127 100755
--- a/configure
+++ b/configure
@@ -6417,8 +6417,14 @@
APPLICATIONSERVICESLIB="-framework ApplicationServices"
- LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
-
+ case $host_os in
+ darwin11*)
+ LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
+ ;;
+ *)
+ LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
+ ;;
+ esac
if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
then
DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"