mirror of
https://github.com/love2d/love.git
synced 2026-08-19 12:14:20 +02:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user