Hi,<div>I had the same problem regarding osx builds being broken.</div><div>The culprit is in posix.mak:</div><div><br></div><div>The current logic to set up SDK env var is frail and won't work for someone who has only 10.7+ SDKs. I simply had to add this:</div>
<div>SDK=$(SDKDIR)/MacOSX10.7.sdk<br></div><div><br></div><div>but a better logic would be to test which is the latest SDK installed checking for $(SDKDIR)/MacOSX10.x.sdk, x=5..8</div><div><br></div><div><br></div><div><div>
ifeq (OSX,$(TARGET))</div><div>    SDKDIR=/Developer/SDKs</div><div>    ifeq "$(wildcard $(SDKDIR) )" ""</div><div>        SDKDIR=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs</div>
<div>    endif</div><div>    ## See: <a href="http://developer.apple.com/documentation/developertools/conceptual/cross_development/Using/chapter_3_section_2.html#//apple_ref/doc/uid/20002000-1114311-BABGCAAB">http://developer.apple.com/documentation/developertools/conceptual/cross_development/Using/chapter_3_section_2.html#//apple_ref/doc/uid/20002000-1114311-BABGCAAB</a></div>
<div>    ENVP= MACOSX_DEPLOYMENT_TARGET=10.3</div><div>    #SDK=$(SDKDIR)/MacOSX10.4u.sdk #doesn't work because can't find <stdarg.h></div><div>    #SDK=$(SDKDIR)/MacOSX10.5.sdk</div><div>    #SDK=$(SDKDIR)/MacOSX10.6.sdk</div>
<div>   #    SDK:=$(if $(filter 11.%, $(OSVER)), $(SDKDIR)/MacOSX10.6.sdk, $(SDKDIR)/MacOSX10.5.sdk)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>#    SDK:=$(if $(filter 11.%, $(OSVER)), $(SDKDIR)/MacOSX10.7.sdk, $(SDKDIR)/MacOSX10.5.sdk)</div>
<div><br></div><div>################## changed that</div><div>    SDK=$(SDKDIR)/MacOSX10.7.sdk</div><div>    TARGET_CFLAGS=-isysroot ${SDK}</div><div>    #-syslibroot is only passed to libtool, not ld.</div><div>    #if gcc sees -isysroot it should pass -syslibroot to the linker when needed</div>
<div>    #LDFLAGS=-lstdc++ -isysroot ${SDK} -Wl,-syslibroot,${SDK} -framework CoreServices</div><div>    LDFLAGS=-lstdc++ -isysroot ${SDK} -Wl -framework CoreServices</div><div>else</div><div>    LDFLAGS=-lm -lstdc++ -lpthread</div>
<div>endif</div></div>