summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 060677f25..aca462a00 100644
--- a/Makefile
+++ b/Makefile
@@ -448,10 +448,19 @@ LIBS += $(shell $(LIBPNG_CONFIG) --L_opts $(PNGCONFIG_FLAGS))
endif
endif
+# iconv is enabled defaultly on OSX > 10.3
ifdef OSX
-ifndef JAGUAR
-LIBS += -liconv
+ ifndef JAGUAR
+ WITH_ICONV=1
+ LIBS += -liconv
+ endif
endif
+
+ifdef WITH_ICONV
+ CDEFS += -DWITH_ICONV
+ ifdef WITH_ICONV_PATH
+ CFLAGS += -I$(WITH_ICONV_PATH)
+ endif
endif
# enables/disables assert()