summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2020-10-16 22:12:48 -0700
committerMichael Pavone <pavone@retrodev.com>2020-10-16 22:12:48 -0700
commit017d2fc55fedc2f545d77513e478e6448f9002b0 (patch)
tree57a3a9f26054ff0dc3ef11fa4a29f68e25b181d2
parent18a5b430ff4ef1e935e418a89b20b310e367b388 (diff)
Specify min OS X version when making a "portable" build for that platform
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0978453..c7d9e82 100644
--- a/Makefile
+++ b/Makefile
@@ -97,7 +97,8 @@ endif
ifeq ($(OS),Darwin)
SDL_INCLUDE_PATH:=Frameworks/SDL2.framework/Headers
-LDFLAGS+= -FFrameworks -framework SDL2 -framework OpenGL -framework AppKit
+CFLAGS+= -mmacosx-version-min=10.10
+LDFLAGS+= -FFrameworks -framework SDL2 -framework OpenGL -framework AppKit -mmacosx-version-min=10.10
FIXUP:=install_name_tool -change @rpath/SDL2.framework/Versions/A/SDL2 @executable_path/Frameworks/SDL2.framework/Versions/A/SDL2
else
SDL_INCLUDE_PATH:=sdl/include