Makefile
changeset 551 48dc69ef0e94
parent 549 004bcc2b1033
child 561 e3b9689745ab
--- a/Makefile	Sat Dec 04 22:29:18 2004 +0000
+++ b/Makefile	Sat Dec 04 23:19:31 2004 +0000
@@ -214,12 +214,6 @@
 endif
 endif
 
-# For some reason it will not link with libpng if SDL is disabled
-# this automatically disables libpng if no SDL is found
-ifndef WITH_SDL
-WITH_PNG:=
-endif
-
 
 
 ##############################################################################
@@ -415,21 +409,13 @@
 LIBS += -lpng
 else
 CFLAGS += `libpng-config --cflags`
-ifdef OSX
-ifdef STATIC
-# Seems like we need a tiny hack for OSX static to work
-LIBS += `libpng-config --prefix`/lib/libpng.a
-else
-LIBS += `libpng-config  --libs`
-endif
-else
+
 # seems like older libpng versions are broken and need this
 PNGCONFIG_FLAGS = --ldflags --libs
 ifdef STATIC
 LIBS += `libpng-config --static $(PNGCONFIG_FLAGS)`
 else
-LIBS += `libpng-config  $(PNGCONFIG_FLAGS)`
-endif
+LIBS += `libpng-config  --L_opts $(PNGCONFIG_FLAGS)`
 endif
 endif
 endif