blob: 7fa628f3cf37888c05e5163ae391b06708dc5b8d (
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
|
name: stage1-gcc
kind: chunk
configure-commands:
- sed -i '/k prot/agcc_cv_libc_provides_ssp=yes' gcc/configure
- mkdir o
- |
case "$MORPH_ARCH" in
armv7lhf) ARCH_FLAGS="--with-arch=armv7-a \
--with-cpu=cortex-a9 \
--with-tune=cortex-a9 \
--with-fpu=vfpv3-d16 \
--with-float=hard" ;;
armv7*) ARCH_FLAGS="--with-arch=armv7-a" ;;
esac
cd o && ../configure \
$ARCH_FLAGS \
--build=$(sh ../config.guess) \
--host=$(sh ../config.guess) \
--target=$TARGET_STAGE1 \
--prefix="$PREFIX" \
`# [1]` --libdir="$PREFIX/lib" \
`# [2]` --with-sysroot=/nonexistentdir \
--with-newlib \
`# [3]` --with-local-prefix="$PREFIX" \
`# [4]` --with-native-system-header-dir="$PREFIX/include" \
--without-headers \
--disable-nls \
--disable-shared \
--disable-multilib \
`# [5]` --disable-decimal-float \
`# [5]` --disable-threads \
`# [5]` --disable-libatomic \
`# [5]` --disable-libgomp \
`# [5]` --disable-libitm \
`# [5]` --disable-libquadmath \
`# [5]` --disable-libsanitizer \
`# [5]` --disable-libssp \
`# [5]` --disable-libvtv \
`# [5]` --disable-libcilkrts \
`# [5]` --disable-libstdc++-v3 \
--enable-languages=c,c++
build-commands:
- |
# GCC is not passing the correct host/target flags to GMP's configure
# script, which causes it to not use the machine-dependent code for
# the platform and use the generic one instead. However, the generic
# code results on an undefined reference to `__gmpn_invert_limb' in
# ARMv7. Fix the invocation of GMP's configure script so that GMP can
# use the machine-dependent code.
case "$MORPH_ARCH" in
armv7*) sed -i "s/--host=none/--host=armv7a/" o/Makefile
sed -i "s/--target=none/--target=armv7a/" o/Makefile ;;
esac
cd o && make
install-commands:
- cd o && make DESTDIR="$DESTDIR" install
|