mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-04-21 21:52:04 +02:00
build on Linux again
This commit is contained in:
parent
e428999044
commit
b5ebed4391
3 changed files with 2 additions and 3 deletions
|
@ -183,7 +183,7 @@ $(LIBDIR)/libSDL2_image.a: $(DOWNLOADS)/sdl2_image/Makefile
|
|||
|
||||
$(DOWNLOADS)/sdl2_image/Makefile: $(DOWNLOADS)/sdl2_image/configure
|
||||
cd $(DOWNLOADS)/sdl2_image; \
|
||||
LIBPNG_LIBS=$(LIBDIR)/libpng.a \
|
||||
LIBPNG_LIBS="-L$(LIBDIR)/libpng.a -lpng" LIBPNG_CFLAGS="-I$(INCLUDEDIR) \
|
||||
$(CONFIGURE) --enable-static=true --enable-shared=false \
|
||||
--disable-imageio \
|
||||
--enable-png=yes --enable-png-shared=no \
|
||||
|
|
|
@ -97,7 +97,7 @@ std::string filesystemImpl::normalizePath(const char *path, bool preferred, bool
|
|||
return ret;
|
||||
}
|
||||
|
||||
std::string filesystemImpl::getDefaultGamePath() {
|
||||
std::string filesystemImpl::getDefaultGameRoot() {
|
||||
char *p = SDL_GetBasePath();
|
||||
std::string ret(p);
|
||||
SDL_free(p);
|
||||
|
|
|
@ -41,7 +41,6 @@ if host_system == 'windows'
|
|||
explicit_libs += 'libmsvcrt;libgcc;libmingwex;libgmp;'
|
||||
endif
|
||||
if build_static == true
|
||||
global_link_args += ['-Wl,-Bstatic', '-lgcc', '-lstdc++', '-lpthread', '-Wl,-Bdynamic']
|
||||
if host_system == 'windows'
|
||||
global_link_args += ['-Wl,-Bstatic', '-lgcc', '-lstdc++', '-lpthread', '-Wl,-Bdynamic']
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue