kumquat-buildroot/package/localedef/localedef.mk

52 lines
1.7 KiB
Makefile
Raw Normal View History

################################################################################
#
# localedef
#
################################################################################
# Use the same VERSION and SITE as target glibc
# As in glibc.mk, generate version string using:
# git describe --match 'glibc-*' --abbrev=40 origin/release/MAJOR.MINOR/master | cut -d '-' -f 2-
LOCALEDEF_VERSION = 2.30-20-g50f20fe506abb8853641006a7b90a81af21d7b91
LOCALEDEF_SOURCE = glibc-$(LOCALEDEF_VERSION).tar.gz
LOCALEDEF_SITE = $(call github,bminor,glibc,$(LOCALEDEF_VERSION))
LOCALEDEF_DEPENDENCIES = $(BR2_MAKE_HOST_DEPENDENCY)
HOST_LOCALEDEF_DL_SUBDIR = glibc
HOST_LOCALEDEF_CONF_ENV += ac_cv_prog_MAKE="$(BR2_MAKE)"
# Even though we use the autotools-package infrastructure, we have to override
# the default configure commands for since we have to build out-of-tree, but we
# can't use the same 'symbolic link to configure' used with the gcc packages.
define HOST_LOCALEDEF_CONFIGURE_CMDS
mkdir -p $(@D)/build
# Do the configuration
(cd $(@D)/build; \
$(HOST_LOCALEDEF_CONF_ENV) \
$(HOST_CONFIGURE_OPTS) \
$(SHELL) $(@D)/configure \
libc_cv_forced_unwind=yes \
libc_cv_ssp=no \
--target=$(GNU_HOST_NAME) \
--host=$(GNU_HOST_NAME) \
--build=$(GNU_HOST_NAME) \
--prefix=/usr \
--with-pkgversion="Buildroot" \
--without-cvs \
--disable-profile \
--without-gd \
--enable-obsolete-rpc)
endef
define HOST_LOCALEDEF_BUILD_CMDS
$(HOST_MAKE_ENV) $(BR2_MAKE1) $(HOST_LOCALEDEF_MAKE_OPTS) \
-C $(@D)/build locale/others
endef
host-localdef fails under gcc5 Building host-localdef fails under gcc5.1 reporting multiple definitions and undefined references: argp-help.o: In function `argp_fmtstream_write': argp-help.c:(.text+0x1dc0): multiple definition of `argp_fmtstream_write' argp-fmtstream.o:argp-fmtstream.c:(.text+0x750): first defined here argp-help.o: In function `argp_fmtstream_puts': argp-help.c:(.text+0x1e10): multiple definition of `argp_fmtstream_puts' argp-fmtstream.o:argp-fmtstream.c:(.text+0x810): first defined here argp-help.o: In function `argp_fmtstream_putc': argp-help.c:(.text+0x1e80): multiple definition of `argp_fmtstream_putc' argp-fmtstream.o:argp-fmtstream.c:(.text+0x7b0): first defined here argp-help.o: In function `argp_fmtstream_set_lmargin': argp-help.c:(.text+0x1ed0): multiple definition of `argp_fmtstream_set_lmargin' argp-fmtstream.o:argp-fmtstream.c:(.text+0x590): first defined here argp-help.o: In function `argp_fmtstream_set_rmargin': argp-help.c:(.text+0x1f00): multiple definition of `argp_fmtstream_set_rmargin' argp-fmtstream.o:argp-fmtstream.c:(.text+0x5c0): first defined here argp-help.o: In function `argp_fmtstream_set_wmargin': argp-help.c:(.text+0x1f30): multiple definition of `argp_fmtstream_set_wmargin' argp-fmtstream.o:argp-fmtstream.c:(.text+0x5f0): first defined here argp-help.o: In function `argp_fmtstream_point': argp-help.c:(.text+0x1f60): multiple definition of `argp_fmtstream_point' argp-fmtstream.o:argp-fmtstream.c:(.text+0x620): first defined here charmap.o: In function `cmlr_open.constprop.2': charmap.c:(.text+0x230a): undefined reference to `charmap_hash' charmap.o: In function `charmap_read': charmap.c:(.text+0x2397): undefined reference to `charmap_hash' locfile.o: In function `locfile_read': locfile.c:(.text+0x2e4): undefined reference to `locfile_hash' locfile.c:(.text+0x8f4): undefined reference to `locfile_hash' locfile.c:(.text+0x9b3): undefined reference to `locfile_hash' locfile.c:(.text+0xa36): undefined reference to `locfile_hash' collect2: error: ld returned 1 exit status Makefile:58: recipe for target 'localedef' failed Ref: http://permalink.gmane.org/gmane.comp.embedded.ptxdist.devel/12950 Signed-off-by: Stephen Agate <stephen.agate@talktalk.net> Reviewed-by: Romain Naour <romain.naour@openwide.fr> Tested-by: Romain Naour <romain.naour@openwide.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2015-08-31 23:50:47 +02:00
# The makefile does not implement an install target for localedef
define HOST_LOCALEDEF_INSTALL_CMDS
$(INSTALL) -D -m 0755 $(@D)/build/locale/localedef $(HOST_DIR)/bin/localedef
endef
$(eval $(host-autotools-package))