fix link with zlib.

GPX decoding uses zlib. It should be explicitely linked or else it produces
errors :

Linking ../bin/grafx2-sdl
/usr/bin/ld: ../obj/unix-sdl/miscfileformats.o: undefined reference to symbol 'uncompress'
//lib/x86_64-linux-gnu/libz.so.1: error adding symbols: DSO missing from command line
This commit is contained in:
Thomas Bernard 2019-04-27 13:12:45 +02:00
parent 7d8ebb9cd0
commit 159e26bb25

View File

@ -635,7 +635,7 @@ endif
COPT += -D_NETBSD_SOURCE
endif
LOPT = -lm
LOPT = -lm -lz
ifeq ($(API),sdl)
LOPT += $(shell sdl-config --libs) -lSDL_image
ifneq ($(NO_X11),1)