Changeset View
Changeset View
Standalone View
Standalone View
package.yml
| name : mingw-w64-gcc | name : mingw-w64-gcc | ||||
| version : 11.2.0 | version : 11.2.0 | ||||
| release : 5 | release : 6 | ||||
| source : | source : | ||||
| - https://ftp.gnu.org/gnu/gcc/gcc-11.2.0/gcc-11.2.0.tar.xz : d08edc536b54c372a1010ff6619dd274c0f1603aa49212ba20f7aa2cda36fa8b | - https://ftp.gnu.org/gnu/gcc/gcc-11.2.0/gcc-11.2.0.tar.xz : d08edc536b54c372a1010ff6619dd274c0f1603aa49212ba20f7aa2cda36fa8b | ||||
| - http://isl.gforge.inria.fr/isl-0.24.tar.xz : 043105cc544f416b48736fff8caf077fb0663a717d06b1113f16e391ac99ebad | - http://isl.gforge.inria.fr/isl-0.24.tar.xz : 043105cc544f416b48736fff8caf077fb0663a717d06b1113f16e391ac99ebad | ||||
| license : GPL-3.0-or-later | license : GPL-3.0-or-later | ||||
| homepage : https://gcc.gnu.org/ | homepage : https://gcc.gnu.org/ | ||||
| component : programming | component : programming | ||||
| summary : | summary : | ||||
| - GCC for MinGW-w64 targeting 64 bits | - GCC for MinGW-w64 targeting 64 bits | ||||
| - 32bit : GCC for MinGW-w64 targeting 32 bits | - 32bit : GCC for MinGW-w64 targeting 32 bits | ||||
| description: | | description: | | ||||
| The GNU Compiler Collection includes front ends for C and C++, as well as libraries for these languages (libstdc++, libgcc,...). GCC was originally written as the compiler for the GNU operating system. The GNU system was developed to be 100% free software, free in the sense that it respects the user's freedom. | The GNU Compiler Collection includes front ends for C and C++, as well as libraries for these languages (libstdc++, libgcc,...). GCC was originally written as the compiler for the GNU operating system. The GNU system was developed to be 100% free software, free in the sense that it respects the user's freedom. | ||||
| strip : no | strip : no | ||||
| builddeps : | builddeps : | ||||
| - mingw-w64-binutils-32bit | |||||
| - mingw-w64-32bit | - mingw-w64-32bit | ||||
| rundeps : | |||||
| - mingw-w64-binutils | |||||
| - 32bit : | |||||
| - mingw-w64-binutils-32bit | |||||
| environment: | | environment: | | ||||
| export CFLAGS_FOR_TARGET="-mtune=generic -march=x86-64 -O3 -pipe -fPIC -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wp,-D_REENTRANT" | export CFLAGS_FOR_TARGET="-mtune=generic -march=x86-64 -O3 -pipe -fPIC -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wp,-D_REENTRANT" | ||||
| export CXXFLAGS_FOR_TARGET="-mtune=generic -march=x86-64 -O3 -pipe -fPIC -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wp,-D_REENTRANT" | export CXXFLAGS_FOR_TARGET="-mtune=generic -march=x86-64 -O3 -pipe -fPIC -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wp,-D_REENTRANT" | ||||
| export LDFLAGS_FOR_TARGET="-Wl,--copy-dt-needed-entries -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,--sort-common" | export LDFLAGS_FOR_TARGET="-Wl,--copy-dt-needed-entries -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,--sort-common" | ||||
| export FCFLAGS="-mtune=generic -march=x86-64 -O3 -pipe -fPIC -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wp,-D_REENTRANT" | export FCFLAGS="-mtune=generic -march=x86-64 -O3 -pipe -fPIC -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wp,-D_REENTRANT" | ||||
| export FFLAGS="-mtune=generic -march=x86-64 -O3 -pipe -fPIC -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wp,-D_REENTRANT" | export FFLAGS="-mtune=generic -march=x86-64 -O3 -pipe -fPIC -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wp,-D_REENTRANT" | ||||
| export TARGET32=i686-w64-mingw32 | export TARGET32=i686-w64-mingw32 | ||||
| export TARGET64=x86_64-w64-mingw32 | export TARGET64=x86_64-w64-mingw32 | ||||
| ▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | setup : | | ||||
| popd | popd | ||||
| mkdir gccdir64 && pushd gccdir64 | mkdir gccdir64 && pushd gccdir64 | ||||
| _gcc_cfg $TARGET64 | _gcc_cfg $TARGET64 | ||||
| popd | popd | ||||
| build : | | build : | | ||||
| %make -C gccdir32 | %make -C gccdir32 | ||||
| %make -C gccdir64 | %make -C gccdir64 | ||||
| install : | | install : | | ||||
| mkdir -p $installdir/usr/share/info $installdir/usr/share/man | install -dm00755 $installdir/usr/share/man | ||||
| # Post installation strips and modifications, or the package bloats to 1.5GB | # Post installation strips and modifications, or the package bloats to 1.5GB | ||||
| _post_install() { | _post_install() { | ||||
| pushd $installdir$PREFIX/bin | pushd $installdir$PREFIX/bin | ||||
| strip --strip-unneeded $1-* | strip --strip-unneeded $1-* | ||||
| ln -s $1-gcc $1-cc | ln -s $1-gcc $1-cc | ||||
| popd | popd | ||||
| mkdir -p $installdir/$PREFIX/$1/bin | mkdir -p $installdir/$PREFIX/$1/bin | ||||
| pushd $installdir/$PREFIX/$1/bin | pushd $installdir/$PREFIX/$1/bin | ||||
| mv $installdir/$PREFIX/$1/lib/*.dll . | mv $installdir/$PREFIX/$1/lib/*.dll . | ||||
| $1-strip --strip-unneeded *.dll | $1-strip --strip-unneeded *.dll | ||||
| popd | popd | ||||
| pushd $installdir$PREFIX/$1/lib | pushd $installdir$PREFIX/$1/lib | ||||
| $1-strip -g *.a | $1-strip -g *.a | ||||
| popd | popd | ||||
| pushd $installdir/usr/lib64/gcc/$1/%version% | pushd $installdir/usr/lib64/gcc/$1/%version% | ||||
| strip -g {cc1,cc1plus,collect2,lto1,lto-wrapper} | strip -g {cc1,cc1plus,collect2,lto1,lto-wrapper} | ||||
| popd | popd | ||||
| pushd $installdir/$PREFIX/share/info | |||||
| for info in cpp cppinternals gcc gccinstall gccint libgomp libquadmath; do | |||||
| mv $info.info $installdir/usr/share/info/$1-$info.info | |||||
| done | |||||
| popd | |||||
| } | } | ||||
| %make_install -C gccdir32 | %make_install -C gccdir32 | ||||
| _post_install $TARGET32 | _post_install $TARGET32 | ||||
| %make_install -C gccdir64 | %make_install -C gccdir64 | ||||
| _post_install $TARGET64 | _post_install $TARGET64 | ||||
| Show All 10 Lines | |||||
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.