From: divverent Date: Fri, 9 Jan 2009 22:13:02 +0000 (+0000) Subject: opengl workaround for os x X-Git-Tag: svn-r421~255 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=81ba832096ffbdce10fbc1c15693b898d7d10b88;p=xonotic%2Fnetradiant.git opengl workaround for os x git-svn-id: svn://svn.icculus.org/netradiant/trunk@165 61c419a2-8eb2-4b30-bcec-8cead039b335 --- diff --git a/Makefile b/Makefile index 24f31f88..d808d5a0 100644 --- a/Makefile +++ b/Makefile @@ -180,7 +180,14 @@ ifeq ($(OS),Darwin) LDFLAGS_COMMON += -L/sw/lib -L/usr/lib -L/usr/X11R6/lib LDFLAGS_DLL += -dynamiclib -ldl EXE = ppc -$(error Unsupported build OS: $(OS) - please complete the Darwin support in this Makefile and submit a patch) + A = a + DLL = dylib + MWINDOWS = + + # workaround: http://developer.apple.com/qa/qa2007/qa1567.html + LIBS_GL=-lGL -lX11 -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib + +#$(error Unsupported build OS: $(OS) - please complete the Darwin support in this Makefile and submit a patch) else $(error Unsupported build OS: $(OS))