VAX/QVSS: Proper linking on OSX

This commit is contained in:
Mark Pizzolato 2013-09-25 16:39:51 -07:00
parent 721a16f7e9
commit daed1e576f
2 changed files with 7 additions and 1 deletions

View file

@ -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))

5
scp.c
View file

@ -233,7 +233,10 @@
#endif
#include <sys/stat.h>
#if defined(HAVE_DLOPEN) /* Dynamic Readline support */
#if defined(HAVE_LIBSDL) && defined(USE_SIM_VIDEO) /* SDL*/
#include <SDL/SDL.h>
#endif
#if defined(HAVE_DLOPEN) /* Dynamic Readline support */
#include <dlfcn.h>
#endif