blob: 5fc4a8425994fe681fffce161c22dd0904f29a9d (
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
71
72
73
74
75
|
# -*-makefile-*-
#
# Copyright (C) 2006 by Robert Schwebel
#
# 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
#
CROSS_PACKAGES-$(PTXCONF_CROSS_GCC_FIRST) += cross-gcc-first
#
# Paths and names
#
CROSS_GCC_FIRST_BUILDDIR = $(CROSS_BUILDDIR)/$(CROSS_GCC)-first-build
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
CROSS_GCC_FIRST_ENV := $(HOST_ENV) MAKEINFO=:
#
# autoconf
#
CROSS_GCC_FIRST_CONF_TOOL := autoconf
CROSS_GCC_FIRST_CONF_OPT = \
$(CROSS_GCC_AUTOCONF_COMMON) \
--prefix=$(CROSS_GCC_FIRST_PREFIX) \
\
--disable-shared \
--enable-languages=c \
\
--with-ld=$(PTXCONF_SYSROOT_CROSS)/bin/$(PTXCONF_GNU_TARGET)-ld \
--with-as=$(PTXCONF_SYSROOT_CROSS)/bin/$(PTXCONF_GNU_TARGET)-as \
--disable-checking \
\
--disable-libmudflap \
--disable-libssp \
--disable-libgomp \
--disable-libquadmath \
--disable-libatomic \
--with-system-zlib
$(STATEDIR)/cross-gcc-first.prepare: $(STATEDIR)/cross-gcc.extract
@$(call targetinfo)
@$(call clean, $(CROSS_GCC_FIRST_BUILDDIR))
mkdir -p $(CROSS_GCC_FIRST_BUILDDIR)
cd $(CROSS_GCC_FIRST_BUILDDIR) && \
$(CROSS_GCC_FIRST_PATH) $(CROSS_GCC_FIRST_ENV) \
$(CROSS_GCC_DIR)/configure $(CROSS_GCC_FIRST_CONF_OPT)
@$(call touch)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
$(STATEDIR)/cross-gcc-first.install:
@$(call targetinfo)
cd $(CROSS_GCC_FIRST_BUILDDIR) && \
$(CROSS_GCC_FIRST_PATH) $(MAKE) install #install-gcc
ln -sfv libgcc.a `$(CROSS_GCC_FIRST_PREFIX)/bin/$(PTXCONF_GNU_TARGET)-gcc \
-print-libgcc-file-name | \
sed 's/libgcc/&_eh/'`
ln -sfv libgcc.a `$(CROSS_GCC_FIRST_PREFIX)/bin/$(PTXCONF_GNU_TARGET)-gcc \
-print-libgcc-file-name | \
sed 's/libgcc/&_s/'`
@$(call touch)
# vim: syntax=make
|