summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 79e045ef6..ed707de4e 100644
--- a/Makefile
+++ b/Makefile
@@ -425,7 +425,12 @@ CFLAGS += `libpng-config --cflags`
# seems like older libpng versions are broken and need this
PNGCONFIG_FLAGS = --ldflags --libs
ifdef STATIC
+ifdef OSX
+# Seems like we need a tiny hack for OSX static to work
+LIBS += `libpng-config --prefix`/lib/libpng.a
+else
LIBS += `libpng-config --static $(PNGCONFIG_FLAGS)`
+endif
else
LIBS += `libpng-config --L_opts $(PNGCONFIG_FLAGS)`
endif