Merge branch 'es/make-no-iconv'

"make NO_ICONV=NoThanks" did not override NEEDS_LIBICONV
(i.e. linkage of -lintl, -liconv, etc. that are platform-specific
tweaks), which has been corrected.

* es/make-no-iconv:
  Makefile: make NO_ICONV really mean "no iconv"
maint
Junio C Hamano 2018-06-18 11:23:24 -07:00
commit da34dd49bb
1 changed files with 12 additions and 10 deletions

View File

@ -1351,7 +1351,8 @@ ifdef APPLE_COMMON_CRYPTO
LIB_4_CRYPTO += -framework Security -framework CoreFoundation LIB_4_CRYPTO += -framework Security -framework CoreFoundation
endif endif
endif endif
ifdef NEEDS_LIBICONV ifndef NO_ICONV
ifdef NEEDS_LIBICONV
ifdef ICONVDIR ifdef ICONVDIR
BASIC_CFLAGS += -I$(ICONVDIR)/include BASIC_CFLAGS += -I$(ICONVDIR)/include
ICONV_LINK = -L$(ICONVDIR)/$(lib) $(CC_LD_DYNPATH)$(ICONVDIR)/$(lib) ICONV_LINK = -L$(ICONVDIR)/$(lib) $(CC_LD_DYNPATH)$(ICONVDIR)/$(lib)
@ -1362,6 +1363,7 @@ ifdef NEEDS_LIBICONV
ICONV_LINK += -lintl ICONV_LINK += -lintl
endif endif
EXTLIBS += $(ICONV_LINK) -liconv EXTLIBS += $(ICONV_LINK) -liconv
endif
endif endif
ifdef NEEDS_LIBGEN ifdef NEEDS_LIBGEN
EXTLIBS += -lgen EXTLIBS += -lgen