From daed1e576fad9c03b1cdd97add1e2be9ccd95207 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Wed, 25 Sep 2013 16:39:51 -0700 Subject: [PATCH] VAX/QVSS: Proper linking on OSX --- makefile | 3 +++ scp.c | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index 4922ee45..436be01c 100644 --- a/makefile +++ b/makefile @@ -318,6 +318,9 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin) OS_CCDEFS += -DHAVE_LIBSDL -I$(dir $(call find_include,SDL/SDL)) OS_LDFLAGS += -lSDL $(info using libSDL: $(call find_lib,SDL) $(call find_include,SDL/SDL)) + ifeq (Darwin,$(OSTYPE)) + OS_LDFLAGS += -lSDLmain -lobjc -framework cocoa + endif endif endif ifneq (,$(VIDEO_USEFUL)) diff --git a/scp.c b/scp.c index ca6bab24..fd687e98 100644 --- a/scp.c +++ b/scp.c @@ -233,7 +233,10 @@ #endif #include -#if defined(HAVE_DLOPEN) /* Dynamic Readline support */ +#if defined(HAVE_LIBSDL) && defined(USE_SIM_VIDEO) /* SDL*/ +#include +#endif +#if defined(HAVE_DLOPEN) /* Dynamic Readline support */ #include #endif