blob: 4947ec846644391453c8cee916c7482baa5d2071 (
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
|
# prepare configure for cross-compilation
sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@g" PKGBUILD
# TODO from here: make it all patches, once our own PKGBUILD works
# gcc
#sed -i '/--prefix=\/usr/ a \ --target=i486-unknown-linux-gnu --build=x86_64-pc-linux-gnu \\' gcc/PKGBUILD
# no doxygen documentation
#sed -i "/makedepends=/s/doxygen//" gcc/PKGBUILD
# no ADA
#sed -i "/makedepends=/s/gcc-ada//" gcc/PKGBUILD
#sed -i '/pkgname/ s/gcc-ada//g' gcc/PKGBUILD
#sed -i '/enable-languages/ s/ada//g' gcc/PKGBUILD
# do not build git versions or from git!
#sed -i 's/pkgver=7.2.1/pkgver=7.2.0/' gcc/PKGBUILD
#sed -i "/makedepends=/s/git//" gcc/PKGBUILD
#sed -i 's@git+https://gcc.gnu.org/git/gcc.git#commit=${_commit}@https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz@g' gcc/PKGBUILD
#sed -i 's@cd gcc$@cd ${pkgname}-${pkgver}@g' gcc/PKGBUILD
#sed -i 's@$srcdir/gcc/configure@$srcdir/${pkgname}-${pkgver}/configure@g' gcc/PKGBUILD
# send bugs to the right place
#sed -i 's@https://bugs.archlinux.org/@https://bugs.archlinux32.org/@g' gcc/PKGBUILD
# no LTO and plugins, they break and we don't need them
#sed -i 's@--enable-plugin@--disable-plugin@' gcc/PKGBUILD
#sed -i 's@--enable-lto@--disable-lto@' gcc/PKGBUILD
#sed -i '/enable-languages/ s/lto,//g' gcc/PKGBUILD
# no other languages (Fortran, go, objc, etc)
#sed -i '/pkgname/ s/gcc-fortran//g' gcc/PKGBUILD
#sed -i '/enable-languages/ s/,fortran//g' gcc/PKGBUILD
#sed -i '/pkgname/ s/gcc-go//g' gcc/PKGBUILD
#sed -i '/enable-languages/ s/go,//g' gcc/PKGBUILD
#sed -i '/pkgname/ s/gcc-objc//g' gcc/PKGBUILD
#sed -i '/enable-languages/ s/objc,//g' gcc/PKGBUILD
#sed -i '/enable-languages/ s/,obj-c++//g' gcc/PKGBUILD
# disable some libraries (libgomp doesn't cross compile, NLS we don't need)
#sed -i "/--disable-libssp/ a \ --disable-libgomp \\" gcc/PKGBUILD
#sed -i "/--disable-libssp/ a \ --disable-nls \\" gcc/PKGBUILD
# disable threads
#sed -i 's@--enable-threads=posix@--disable-threads@' gcc/PKGBUILD
#=> current use PKGBUILD-gcc-cross, sorry, too many changes!
# disable all languages but C and C++
#use gcc-cross-PKGBUILD
|