summaryrefslogtreecommitdiff
path: root/i486-stage1/gcc/DESCR
diff options
context:
space:
mode:
Diffstat (limited to 'i486-stage1/gcc/DESCR')
-rw-r--r--i486-stage1/gcc/DESCR42
1 files changed, 42 insertions, 0 deletions
diff --git a/i486-stage1/gcc/DESCR b/i486-stage1/gcc/DESCR
new file mode 100644
index 0000000..4947ec8
--- /dev/null
+++ b/i486-stage1/gcc/DESCR
@@ -0,0 +1,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
+