Blame view

buildroot/buildroot-2016.08.1/package/libiconv/libiconv.mk 1.12 KB
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  ################################################################################
  #
  # libiconv
  #
  ################################################################################
  
  LIBICONV_VERSION = 1.14
  LIBICONV_SITE = $(BR2_GNU_MIRROR)/libiconv
  LIBICONV_INSTALL_STAGING = YES
  LIBICONV_LICENSE = GPLv3+ (iconv program), LGPLv2+ (library)
  LIBICONV_LICENSE_FILES = COPYING COPYING.LIB
  
  # 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' $(@D)/Makefile.in
  endef
  LIBICONV_PRE_CONFIGURE_HOOKS += LIBICONV_DISABLE_PRELOAD
  
  $(eval $(autotools-package))
  
  # Configurations where the toolchain supports locales and the libiconv
  # package is enabled are incorrect, because the toolchain already
  # provides libiconv functionality, and having both confuses packages.
  ifeq ($(BR2_PACKAGE_LIBICONV)$(BR2_ENABLE_LOCALE),yy)
  $(error Libiconv should never be enabled when the toolchain supports locales. Report this failure to Buildroot developers)
  endif