111 lines
6.5 KiB
Bash
Executable file
111 lines
6.5 KiB
Bash
Executable file
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
|
# Generated by mksm SMLinux build file generator version 0.101
|
|
app=gcc
|
|
version=13.2.0
|
|
build=1sml
|
|
homepage="https://gcc.gnu.org/"
|
|
download="https://ftp.gnu.org/gnu/gcc/gcc-$version/gcc-$version.tar.xz"
|
|
desc="The Gnu Compiler Collection"
|
|
requires="mpfr mpc"
|
|
noautoconfsite=1
|
|
preservestaticlibs=1
|
|
|
|
prepbuilddir() {
|
|
mkandenterbuilddir
|
|
rm -rf $app-$version
|
|
|
|
tar xf $srcdir/$app-$version.tar.?z*
|
|
cd $app-$version
|
|
fixbuilddirpermissions
|
|
|
|
applypatch $srcdir/0001-posix_memalign.patch
|
|
applypatch $srcdir/0003-specs-turn-on-Wl-z-now-by-default.patch
|
|
applypatch $srcdir/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch
|
|
applypatch $srcdir/0006-Enable-Wformat-and-Wformat-security-by-default.patch
|
|
applypatch $srcdir/0007-Enable-Wtrampolines-by-default.patch
|
|
applypatch $srcdir/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch
|
|
applypatch $srcdir/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch
|
|
applypatch $srcdir/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch
|
|
applypatch $srcdir/0011-libiberty-copy-PIC-objects-during-build-process.patch
|
|
applypatch $srcdir/0012-libgcc_s.patch
|
|
applypatch $srcdir/0013-nopie.patch
|
|
applypatch $srcdir/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch
|
|
applypatch $srcdir/0016-add-fortify-headers-paths.patch
|
|
applypatch $srcdir/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch
|
|
applypatch $srcdir/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch
|
|
applypatch $srcdir/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch
|
|
applypatch $srcdir/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch
|
|
applypatch $srcdir/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch
|
|
applypatch $srcdir/0031-druntime-link-against-libucontext-on-all-platforms.patch
|
|
applypatch $srcdir/0033-libphobos-do-not-use-LFS64-symbols.patch
|
|
}
|
|
|
|
build() {
|
|
./configure \
|
|
--prefix=/usr \
|
|
--libdir=/usr/lib \
|
|
--mandir=/usr/share/man \
|
|
--enable-checking=release \
|
|
--disable-cet \
|
|
--disable-fixed-point \
|
|
--disable-libstdcxx-pch \
|
|
--disable-multilib \
|
|
--disable-nls \
|
|
--disable-werror \
|
|
--disable-symvers \
|
|
--enable-__cxa_atexit \
|
|
--enable-default-pie \
|
|
--enable-default-ssp \
|
|
--enable-languages=c,c++,objc,fortran \
|
|
--enable-link-serialization=2 \
|
|
--enable-linker-build-id \
|
|
--disable-libssp \
|
|
--disable-libsanitizer \
|
|
--with-system-zlib \
|
|
--with-linker-hash-style=gnu \
|
|
--enable-shared \
|
|
--enable-threads \
|
|
--enable-tls
|
|
|
|
make
|
|
make -j1 install DESTDIR=$pkg
|
|
|
|
cp COPYING $pkgdocs/
|
|
|
|
mv $pkg/usr/lib64/* $pkg/usr/lib/
|
|
rmdir $pkg/usr/lib64
|
|
|
|
(
|
|
cd $pkg/usr/bin
|
|
ln -s gcc cc
|
|
)
|
|
|
|
mv $pkg/usr/lib/*.spec $pkg/usr/lib/gcc/x86_64-pc-linux-musl/$version/
|
|
|
|
mkfinalpkg
|
|
}
|
|
|
|
|
|
sha512sums="
|
|
f5664cb074db27a5acc82d6fecbd5183df0df724cadad9a595a6296a061b66c97cf0dd29d475924369926f1e7f9131e658099ece24382c35053bb73a53ecc9ce gcc-13.2.0.tar.lz
|
|
1ecffba1b07d60e1b4422302b032bbea918b674c8e12b30aa6965b544d700ce86b61e9f7b8d402c6caf59257f491a394dd0912f0948565d6eae9335ee54f3b35 0001-posix_memalign.patch
|
|
3f24bb6a50d3c45b71ea05590e32fe3e69b91377ab185352891d5035c76ed193117c6d0b314a4c364bcf136b9a9dd5c926d6c7c30ab436976c121ebfea8d3ddd 0003-specs-turn-on-Wl-z-now-by-default.patch
|
|
444550e55491ff89fe8cbbb4b73d017c9c147cdce1ad5c0561fe7d6ab3834515a814c7676c408cfeec18e1aaace27b3c26a2ffe4a75042285df5124976c38672 0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch
|
|
5a5f57e4e45745bb4d9d63d7d410fe9dd56ce12dbd70c376dd45015909307faf02391e75368e4e7404591614a874cee41b20652cf27be234765d6db97ceb4e7e 0006-Enable-Wformat-and-Wformat-security-by-default.patch
|
|
3a2b22388398a93dae7787e794cd580b9c577326f286241e086120c1fcfdd9228c2e00407088ebb163fb1acc21722c199071343551c989a958dc3c845b15132d 0007-Enable-Wtrampolines-by-default.patch
|
|
7535de1c552544e3a51cbb00b5e08ac59edbf3bdcfce2a63b9f319fada3f3676f47e3a00c75d91bcefd14500555ea0844f18c130ff46b20f416ea76071e5af39 0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch
|
|
93d03afd83dee5f7129c36a7b81fa8fd323476507e2f53a4fbe40a026037e7dfafa23591145d7af5848d9a322d212497947a0f58ef828734552e6a6dabd00cfa 0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch
|
|
da9eaf2f0ddbec5ee14dc26053936587e6c76fbf16846db804a18cf4d318579426ebcc566aed02daf8e34f60c08b61f5d3959305886dca9bbcdc84db057258d9 0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch
|
|
35b9aafe7eee8138cb7aad7164a8f77c15ccdce26843cee78b5871ef91d76cad22ed0871b20f51c4b89b71afd9cfe4ba4227086e158c466558513708fe7d2a1a 0011-libiberty-copy-PIC-objects-during-build-process.patch
|
|
9d43f844fad0ac6e1c35a2b6f461f9278ae09e468f2c9ae8adc43accbe6934994aa10d3a433644d1393a4a76e3caed69e3191db7f3c0c24b4e7a0a0a0cbac3f1 0012-libgcc_s.patch
|
|
b2c4921c5eef33ee43a92ab5ec7f09d5d3adb49a2416595001e6376ffdf652ef9d0dc21778c3a86e45334290dbe467a4e891ed34a6522e0c72f746def22e8663 0013-nopie.patch
|
|
00097c7106625ccf02149a757366f434c48f2abe824bb8b4bf067d29308889cb6039a5e5b2d3bd2683617693b47707d549252c56eea6bc3cdc2450a8d14f46a7 0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch
|
|
7f0bc42b93a389b614054e700b851abfbc53db391aa10cbdf6990d41396b293af78980bb39f1cf0967184d3fbf3d46ac7c7f096717b8f193ea34cbf7f37d7e91 0016-add-fortify-headers-paths.patch
|
|
0841acbce81250f8cb140a75ff62958dfcab3bed792822baf1fe4193dd62633648343f4b66df886c12338eed88a98e591b968131416460f9f0274046019bb8ef 0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch
|
|
589d538bdf692559e475e53c79869734dede0eb15228cab9ca901c9db81b0e78a0e532b20dfb05ca584ea19ff4bedd83e139ddca912a26b446c5eb6905180536 0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch
|
|
3f9a406d7d2ce34951215ffbcadb49a45e55ad5c24ab9097c0e5e92383e43b876872ccd2a7e7def2833ab204975ee5733f8bcf90934db9fa9c4f6f56c62081f6 0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch
|
|
2044c23b23726965c0a6fd39f616cc464badd650947cb40495eeabd906a3af629878c1d28b403b8eb46b30a1a0ba39083023290d62f0c99ccf070063226e3f8f 0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch
|
|
58e8415612e1042329ad114471852c19f6bf15bf3bfd7cd81ceeafa75778bcc28410a01071a7c8cbf12b8f549acd85723215772813deedb8f266e28b9e01a353 0030-gdc-unconditionally-link-libgphobos-against-libucont.patch
|
|
d47b559075f40d526235f47b91da1d0cf6bfe6c5b7311bbfe08af9dd6e8f27e6c7cd82e3b2d529aab0536246fc56e2d42c089b22cacb0e7f09ca4a9d07556994 0031-druntime-link-against-libucontext-on-all-platforms.patch
|
|
c474f34e6f9a4239d486a65141a133dbe8ce91427d502a57a9fd6eb403478a2b5715ba74f24c1cc0761e16eec77ba2c1ca921fb7d7bc1e040fc3703fc9559e75 0033-libphobos-do-not-use-LFS64-symbols.patch
|
|
"
|