Commits

richard42  committed cb71ac0

OSX build fix

  • Participants
  • Parent commits abf47ae

Comments (0)

Files changed (1)

File projects/unix/Makefile

 endif
 ifeq ($(OS),OSX)
     CFLAGS  += $(shell $(SDL_CONFIG) --cflags)
-    # sdl-config on mac screws up when we're trying to build a library and not an executable
-    # SDL 1.3 is supposed to fix that, if it's ever released
-    LDLIBS += -L/usr/local/lib -lSDL -Wl,-framework,Cocoa
+    LDLIBS += $(shell $(SDL_CONFIG) --libs)
 endif
 ifeq ($(OS),LINUX)
     CFLAGS  += $(shell $(SDL_CONFIG) --cflags)
   CFLAGS += -g
   INSTALL_STRIP_FLAG ?= 
 else
-  INSTALL_STRIP_FLAG ?= -s
+  ifneq ($(OS),OSX)
+    INSTALL_STRIP_FLAG ?= -s
+  endif
 endif
 
 # set installation options