From 8baf86e4bbe73a728a438e77441fba486a1ec1af Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sun, 6 Sep 2009 18:07:49 +0000 Subject: [PATCH] Temporarily limited builds to 32-bit on OX S to stay compatible to Snow Leopard git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6848 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- CHANGES | 2 ++ configure.in | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/CHANGES b/CHANGES index f28648d5d..99791aa8e 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,7 @@ CHANGES IN FLTK 1.1.10 + - Temporarily limited builds to 32-bit on OX S to stay + compatible to Snow Leopard - Fixed Windows compile bug with "#define USE_COLORMAP 0" (STR #2241) - Fixed glibc 2.10 compiler problems (Fedora 11 and others) diff --git a/configure.in b/configure.in index 78f19c8c8..80404a798 100644 --- a/configure.in +++ b/configure.in @@ -83,6 +83,16 @@ case $uname in DSOFLAGS="$DSOFLAGS -mno-cygwin" fi ;; + Darwin*) + # Starting with 10.6 (Snow Leopard), OS X does not support + # Carbon calls anymore. We patch this until we are completely Cocoa compliant + # by limiting ourselves to 32 bit Intel compiles + if test `sw_vers -productVersion` = "10.6"; then + CFLAGS="$CFLAGS -arch i386" + CXXFLAGS="$CXXFLAGS -arch i386" + LDFLAGS="$LDFLAGS -arch i386" + fi + ;; esac dnl Define the libraries and link options we'll need.