WineBarrels-BasePlatforms/BasePlatform/v2/platform/gcc-base.yaml

167 lines
5.6 KiB
YAML

name: gcc-base-meta
modules:
# GCC libs
- name: cross-gmp
sources:
- type: archive
url: https://ftp.gnu.org/gnu/gmp/gmp-6.2.0.tar.lz
sha256: 3f33f127bcb6b2c3601676cd3281df45824b148cbf688b73c0fc8248793667d9
config-opts:
- --disable-static
- --enable-assert
- --enable-cxx
- --enable-fat
- --enable-maintainer-mode
- --enable-shared
- --with-gnu-ld
builddir: true
build-options:
cflags: -flto
cxxflags: -flto
post-install:
- make -j$FLATPAK_BUILDER_N_JOBS check || true
- name: cross-mpfr
sources:
- type: archive
url: https://ftp.gnu.org/gnu/mpfr/mpfr-4.0.2.tar.xz
sha256: 1d3be708604eae0e42d578ba93b390c2a145f17743a744d8f3f8c2ad5855a38a
config-opts:
- --disable-static
- --enable-assert
- --enable-dependency-tracking
- --enable-maintainer-mode
- --enable-shared-cache
- --enable-shared
- --enable-thread-safe
- --enable-warnings
- --with-gnu-ld
builddir: true
build-options:
cflags: -flto
cxxflags: -flto
post-install:
- make -j$FLATPAK_BUILDER_N_JOBS check || true
- name: cross-mpc
sources:
- type: archive
url: https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
sha256: 6985c538143c1208dcb1ac42cedad6ff52e267b47e5f970183a3e75125b43c2e
config-opts:
- --disable-static
- --enable-dependency-tracking
- --enable-maintainer-mode
- --enable-shared
- --with-gnu-ld
builddir: true
build-options:
cflags: -flto
cxxflags: -flto
post-install:
- make -j$FLATPAK_BUILDER_N_JOBS check || true
- name: cross-libs-fix1
buildsystem: simple
build-commands:
- libtool --finish /usr/lib/x86_64-linux-gnu
only-arches:
- x86_64
# Binutils
- name: mingw-binutils-32bit
sources: &BINUTILS_SOURCES
- type: archive
url: https://ftp.gnu.org/gnu/binutils/binutils-2.34.tar.lz
sha256: 5cec79823ef596817aa57a3f470a1afa9827bf14e3583a4e445dc046cc38d29c
config-opts:
- --target=i686-w64-mingw32
- --disable-werror
- --enable-deterministic-archives
- --enable-lto
- --enable-plugins
- --enable-relro
- --with-system-zlib
builddir: true
only-arches:
- i386
- x86_64
cleanup-platform:
- "*"
- name: mingw-binutils-64bit
sources: *BINUTILS_SOURCES
config-opts:
- --target=x86_64-w64-mingw32
- --disable-werror
- --enable-deterministic-archives
- --enable-lto
- --enable-plugins
- --enable-relro
- --with-system-zlib
builddir: true
only-arches:
- x86_64
cleanup-platform:
- "*"
- name: cross-binutils
sources: *BINUTILS_SOURCES
config-opts:
- --host=x86_64-unknown-linux
- --build=x86_64-unknown-linux
- --target=x86_64-unknown-linux
- --disable-libdecnumber
- --disable-readline
- --disable-sim
- --disable-werror
- --enable-64-bit-bfd
- --enable-deterministic-archives
- --enable-gold
- --enable-ld=default
- --enable-lto
- --enable-multiarch
- --enable-multilib
- --enable-plugins
- --enable-relro=yes
- --enable-shared
- --enable-static
- --enable-static-pie
- --enable-targets=x86_64-pep
- --enable-vtable-verify
- --with-system-zlib
- --with-lib-path=/usr/lib:/usr/lib32:/usr/lib/x86_64-linux-gnu:/usr/lib64:/app/lib:/app/lib32:/app/lib64
builddir: true
post-install:
- make -k -j$FLATPAK_BUILDER_N_JOBS check || true
cleanup-platform:
- /bin
only-arches:
- x86_64
# Glibc base headers
- name: cross-prepare-rsync
sources:
- type: archive
url: https://download.samba.org/pub/rsync/src/rsync-3.1.3.tar.gz
sha256: 55cc554efec5fdaad70de921cd5a5eeb6c29a95524c715f3bbf849235b0800c0
no-autogen: true
cleanup-platform:
- "*"
- name: cross-prepare-glibc
sources:
- type: archive
url: https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.4.34.tar.xz
sha256: 903ec1334daba6a626688f799cc947b420cf6fc8ce83055313dc4e9978d64cd2
dest: kernel_headers
buildsystem: simple
build-commands:
- cd kernel_headers; make -j$FLATPAK_BUILDER_N_JOBS mrproper
- cd kernel_headers; make -j$FLATPAK_BUILDER_N_JOBS headers_check
- cd kernel_headers; PATH=$PATH:/usr/tmp/usr/bin make -j$FLATPAK_BUILDER_N_JOBS INSTALL_HDR_PATH=/usr/tmp ARCH=x86_64 headers_install
- cp -raPv /usr/tmp/include /usr && rm -rf /usr/tmp
only-arches:
- x86_64
cleanup-platform:
- "*"
- name: todo-32bit
buildsystem: simple
build-commands:
- "false"
only-arches:
- i386