Skip to content
Snippets Groups Projects
Commit 047106c9 authored by deuce's avatar deuce
Browse files

Link with libdl.so on platforms which don't include it in libc

(Solaris, OSX, Linux) when using SDL as non-static.
parent ed1b8b15
No related branches found
No related tags found
No related merge requests found
...@@ -111,6 +111,19 @@ ifdef WITH_SDL ...@@ -111,6 +111,19 @@ ifdef WITH_SDL
XPDEV-MT_CFLAGS += -DSTATIC_SDL XPDEV-MT_CFLAGS += -DSTATIC_SDL
XPDEV-LIBS += $(shell $(SDL_CONFIG) --static-libs) XPDEV-LIBS += $(shell $(SDL_CONFIG) --static-libs)
XPDEV-CFLAGS += -DSTATIC_SDL XPDEV-CFLAGS += -DSTATIC_SDL
else
ifeq ($(os),darwin)
XPDEV-MT_LIBS += $(UL_PRE)dl$(UL_SUF)
XPDEV_LIBS += $(UL_PRE)dl$(UL_SUF)
endif
ifeq ($(os),linux)
XPDEV-MT_LIBS += $(UL_PRE)dl$(UL_SUF)
XPDEV_LIBS += $(UL_PRE)dl$(UL_SUF)
endif
ifeq ($(os),sunos)
XPDEV-MT_LIBS += $(UL_PRE)dl$(UL_SUF)
XPDEV_LIBS += $(UL_PRE)dl$(UL_SUF)
endif
endif endif
endif endif
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment