blob: f8c38f4adba11bae49344ff285523461dd2f9d90 (
plain)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# -*-makefile-*-
#
# Copyright (C) 2006 by Robert Schwebel
# 2007, 2008 by Marc Kleine-Budde
# 2013 by Michael Olbrich <m.olbrich@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_GLIBC_FIRST) += glibc-first
#
# Paths and names
#
GLIBC_FIRST_BUILDDIR = $(BUILDDIR)/$(GLIBC)-first-build
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
GLIBC_FIRST_PATH := PATH=$(CROSS_PATH)
GLIBC_FIRST_ENV := \
CC="$(CROSS_CC) -fuse-ld=bfd" \
CXX=false \
BUILD_CC=$(HOSTCC) \
\
libc_cv_c_cleanup=yes \
libc_cv_forced_unwind=yes \
libc_cv_fpie=yes \
libc_cv_slibdir='/lib' \
libc_cv_ssp=yes \
libc_cv_visibility_attribute=yes \
libc_cv_broken_visibility_attribute=no \
libc_cv_z_relro=yes \
\
ac_cv_sizeof_long_double=$(PTXCONF_SIZEOF_LONG_DOUBLE)
GLIBC_FIRST_CONF_TOOL := autoconf
GLIBC_FIRST_CONF_OPT = \
$(GLIBC_AUTOCONF_COMMON) \
$(PTXCONF_GLIBC_CONFIG_EXTRA_CROSS) \
--disable-debug \
--disable-profile \
$(STATEDIR)/glibc-first.prepare: $(STATEDIR)/glibc.extract
@$(call targetinfo)
@$(call clean, $(GLIBC_FIRST_BUILDDIR))
mkdir -p $(GLIBC_FIRST_BUILDDIR)
cd $(GLIBC_FIRST_BUILDDIR) && \
$(GLIBC_FIRST_ENV) $(GLIBC_FIRST_PATH) \
$(GLIBC_DIR)/configure $(GLIBC_FIRST_CONF_OPT)
@$(call touch)
GLIBC_FIRST_MAKE_OPT := \
AUTOCONF=no \
build-programs=no
GLIBC_FIRST_INSTALL_OPT := \
AUTOCONF=no \
install_root=$(SYSROOT) \
install-lib-all \
install-headers
# vim: syntax=make
|