You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
931 B
30 lines
931 B
################################################################################
|
|
#
|
|
# libiconv
|
|
#
|
|
################################################################################
|
|
|
|
LIBICONV_VERSION = 1.17
|
|
LIBICONV_DIR = libiconv-$(LIBICONV_VERSION)
|
|
LIBICONV_SOURCE = libiconv-$(LIBICONV_VERSION).tar.gz
|
|
LIBICONV_SITE = $(GNU_MIRROR)/libiconv
|
|
|
|
LIBICONV_CONF_ENV = \
|
|
CPPFLAGS="$(TARGET_CPPFLAGS) -fPIC"
|
|
|
|
LIBICONV_CONF_OPTS = \
|
|
--datarootdir=$(REMOVE_datarootdir) \
|
|
--enable-static \
|
|
--disable-shared \
|
|
--enable-relocatable
|
|
|
|
# Don't build the preloadable library, as we don't need it (it's only
|
|
# for LD_PRELOAD to replace glibc's iconv, but we never build libiconv
|
|
# when glibc is used). And it causes problems for static only builds.
|
|
define LIBICONV_DISABLE_PRELOAD
|
|
$(SED) '/preload/d' $(PKG_BUILD_DIR)/Makefile.in
|
|
endef
|
|
LIBICONV_POST_PATCH_HOOKS += LIBICONV_DISABLE_PRELOAD
|
|
|
|
libiconv: | $(TARGET_DIR)
|
|
$(call autotools-package)
|
|
|