summaryrefslogtreecommitdiff
path: root/strata/build-essential/gcc.morph
blob: 63d4ad4c107f67c1e3b3bf744d8b91b140e8542b (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
name: gcc
kind: chunk

configure-commands:
- mkdir o

# Configure flag notes:    
#   1. An attempt to stop anything going in $PREFIX/lib64 (which doesn't
#      fully work; we will need to hobble the multilib configuration in
#      config/i386/t-linux64 if we really want to kill /lib64).
#   2. MPFR is built in the GCC tree, we need to locate it.
#   3. Avoid having more than one copy of ZLib in use on the system
#   4. Optimisation libraries which for now we do without.
#   5. Multilib does not make sense in Baserock.
#   6. Recommended by Linux From Scratch; required for C++ ABI
#      compatibility with other Linux distributions.
- |
  cd o && ../configure                                        \
            $(../morph-arch-config)                           \
            --prefix="$PREFIX"                                \
    `# [1]` --libdir=$PREFIX/lib                              \
    `# [2]` --with-mpfr-include="$(pwd)/../mpfr/src"          \
    `# [2]` --with-mpfr-lib="$(pwd)/mpfr/src/.libs"           \
    `# [3]` --with-system-zlib                                \
    `# [4]` --without-cloog                                   \
    `# [4]` --without-ppl                                     \
            --disable-nls                                     \
    `# [5]` --disable-multilib                                \
            --disable-libgomp                                 \
    `# [6]` --enable-__cxa_atexit                             \
            --enable-shared                                   \
            --enable-threads=posix                            \
            --enable-languages=c,c++,fortran

build-commands:
- cd o && make

install-commands:
- cd o && make DESTDIR="$DESTDIR" install
- ln -s gcc "$DESTDIR/$PREFIX/bin/cc"
- >
  for fortran_alias in f77 f90 f95; do
      ln -s gfortran "$DESTDIR/$PREFIX/bin/$fortran_alias"
  done