From 159e26bb253229a6ab762f11c218aad2fc7e3b92 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Sat, 27 Apr 2019 13:12:45 +0200 Subject: [PATCH] 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 --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 49131031..a67bd9ba 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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)