--- Makefile.orig	2017-12-27 01:35:01.000000000 +0100
+++ Makefile	2018-02-12 11:02:29.189027856 +0100
@@ -1,7 +1,7 @@
 CC=gcc
 CFLAGS=-O3 -Wall -Wextra -Wno-unknown-pragmas
 LDFLAGS=
-LIBS=-lm -lpthread -lz
+LIBS=-lm -lpthread -lz -L${EBROOTZLIB}/lib
 ZOPFLI=zopfli/src/zopfli/
 ZOP=deflate.o blocksplitter.o tree.o lz77.o cache.o hash.o util.o squeeze.o katajainen.o

