diff options
author | bjarni <bjarni@openttd.org> | 2004-12-04 23:19:31 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2004-12-04 23:19:31 +0000 |
commit | 5069e98221de0637417b36dfc350c67f80e57fed (patch) | |
tree | d23a64e758ae9fbe2c81aaf244a40b0ae4c196a8 /Makefile | |
parent | edb26fb40e2b74d940c07f0e25de2462bbf1f470 (diff) | |
download | openttd-5069e98221de0637417b36dfc350c67f80e57fed.tar.xz |
(svn r951) Makefile: fixed missing flag for libpng, which prevented lib detection if SDL was not used
Makefile: Combined the OSX specific libpng code with the general one. Now OSX have no special code for libpng
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 2 insertions, 16 deletions
@@ -214,12 +214,6 @@ endif 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 @@ ifdef FREEBSD 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 |