diff --git a/polymer/eduke32/build/Makefile.shared b/polymer/eduke32/build/Makefile.shared index c56467640..51cd9913f 100644 --- a/polymer/eduke32/build/Makefile.shared +++ b/polymer/eduke32/build/Makefile.shared @@ -314,7 +314,9 @@ else LIBS+= -L/opt/local/lib -L/usr/local/lib -lpng # -lz endif else - LIBS+= -lpng -lz + ifneq ($(USE_LIBPNG),0) + LIBS+= -lpng -lz + endif endif endif