Fixed build errors with custom SDL location (resolves issue 774)

Uses SDL2's sdl2.m4 macros, which are installed along with SDL2. This ensures
that the correct flags are given to the compiler and linker.
This commit is contained in:
Jordy Dickinson
2013-10-31 20:24:43 +01:00
parent e2626552bd
commit 86f3ee4775
2 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -7,6 +7,7 @@ inc_libraries="$inc_current/libraries"
cat > Makefile.am << EOF
AM_CPPFLAGS = -I$inc_current -I$inc_modules -I$inc_libraries -I$inc_libraries/enet/libenet/include \$(LOVE_INCLUDES) \$(FILE_OFFSET)
AM_CXXFLAGS = \$(SDL_CFLAGS)
AUTOMAKE_OPTIONS = subdir-objects
SUBDIRS =
@@ -27,7 +28,7 @@ endif
# libLÖVE
lib_LTLIBRARIES = liblove.la
liblove_la_LDFLAGS = -module -export-dynamic \$(LDFLAGS)
liblove_la_LDFLAGS = -module -export-dynamic \$(LDFLAGS) \$(SDL_LIBS)
liblove_la_SOURCES = \\
EOF