1. Jeff Sickel
  2. drawterm-cocoa
  3. Issues
Issue #11 resolved

Build broken on OS X 10.9

Aram Hăvărneanu
created an issue

I had to apply this patch to build:

diff -r 3a5b0b0a1931 Make.osx-cocoa
--- a/Make.osx-cocoa    Fri Nov 29 16:57:50 2013 -0600
+++ b/Make.osx-cocoa    Sat Jan 04 13:26:57 2014 +0100
@@ -1,17 +1,12 @@
 # Mac OS X Cocoa version
 #   avaialable for SDK macosx10.7 or macosx10.8

-SDK107=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.7
-SDK108=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.8
 ARCHFLAGS64=-arch x86_64 -m64
 ARCHFLAGS32=-arch i386 -m32

 # select your target here by setting 32 or 64 and SDK options

 PTHREAD=-lpthread  # for Mac

@@ -27,7 +22,7 @@

-CFLAGS=$(WARNINGS) $(ARCHFLAGS) $(SDK) -fwritable-strings -g -O0 -I. -I$(ROOT) -I$(ROOT)/include -I$(ROOT)/kern -c -D_THREAD_SAFE -DPTHREAD -DCOCOA
+CFLAGS=$(WARNINGS) $(ARCHFLAGS) -fwritable-strings -g -O0 -I. -I$(ROOT) -I$(ROOT)/include -I$(ROOT)/kern -c -D_THREAD_SAFE -DPTHREAD -DCOCOA

 LDFLAGS=$(ARCHFLAGS) $(SDK) -framework Cocoa $(PTHREAD)

Comments (6)

  1. Jeff Sickel repo owner

    The -isysroot and -mmacosx-version flags let you build on one version of OS X and generate code that will work on an older version, within reason. The latest releases of Xcode 5 on 10.9 only give access to the 10.8 SDK, but if you're using an older Xcode install you can still target 10.7 if needed. I'll push a change that at least lets it default to the current platform w/o needing to edit the file.

  2. Log in to comment