Makefile
changeset 583 3762db489bb4
parent 580 d3f72568d160
child 589 e598716c39e4
equal deleted inserted replaced
582:c49fcdc4241b 583:3762db489bb4
   423 CFLAGS += `libpng-config --cflags`
   423 CFLAGS += `libpng-config --cflags`
   424 
   424 
   425 # seems like older libpng versions are broken and need this
   425 # seems like older libpng versions are broken and need this
   426 PNGCONFIG_FLAGS = --ldflags --libs
   426 PNGCONFIG_FLAGS = --ldflags --libs
   427 ifdef STATIC
   427 ifdef STATIC
       
   428 ifdef OSX
       
   429 # Seems like we need a tiny hack for OSX static to work
       
   430 LIBS += `libpng-config --prefix`/lib/libpng.a
       
   431 else
   428 LIBS += `libpng-config --static $(PNGCONFIG_FLAGS)`
   432 LIBS += `libpng-config --static $(PNGCONFIG_FLAGS)`
       
   433 endif
   429 else
   434 else
   430 LIBS += `libpng-config  --L_opts $(PNGCONFIG_FLAGS)`
   435 LIBS += `libpng-config  --L_opts $(PNGCONFIG_FLAGS)`
   431 endif
   436 endif
   432 endif
   437 endif
   433 endif
   438 endif