From 04a542f1b33dd32e299942babaefc52c41bfd495 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Wed, 3 Oct 2012 15:29:07 +0000 Subject: [PATCH] On non-{Windows, OS X}, don't link to libpng when PNG support is not requested. git-svn-id: https://svn.eduke32.com/eduke32@3050 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/Makefile.shared | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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