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
This commit is contained in:
helixhorned 2012-10-03 15:29:07 +00:00
parent 1ba5ec469b
commit 04a542f1b3

View file

@ -314,9 +314,11 @@ else
LIBS+= -L/opt/local/lib -L/usr/local/lib -lpng # -lz
endif
else
ifneq ($(USE_LIBPNG),0)
LIBS+= -lpng -lz
endif
endif
endif
ifeq ($(PLATFORM),WINDOWS)
LIBS+= $(L_SSP) -Wl,--enable-auto-import