]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - Makefile
opengl workaround for os x
[xonotic/netradiant.git] / Makefile
index 0e15f73d4d035868e11883f57caa22a7b99f1e2f..d808d5a011fae30d7d2c2cd9759b10f5d4e261b7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -174,13 +174,20 @@ ifeq ($(OS),Win32)
 else
 
 ifeq ($(OS),Darwin)
-       CFLAGS_COMMON += -force-cpusubtype_ALL -fPIC
+       CFLAGS_COMMON += -fPIC
        CXXFLAGS_COMMON += -fno-exceptions -fno-rtti
        CPPFLAGS_COMMON += -I/sw/include -I/usr/X11R6/include
        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))