summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xarchPackagesUpdate7
-rw-r--r--makepkg-pentium4.patch19
2 files changed, 25 insertions, 1 deletions
diff --git a/archPackagesUpdate b/archPackagesUpdate
index 15490877..b8825222 100755
--- a/archPackagesUpdate
+++ b/archPackagesUpdate
@@ -502,7 +502,7 @@ if ${aufRechenknecht}; then
maxErr=0
-# generate current makepkg.conf and makepkg-i686.conf
+# generate current makepkg.conf, makepkg-i686.conf and makepkg-pentium4.conf
cd "${tmpDir}"
cp /etc/makepkg.conf .
if ! patch -p0 -i makepkgSystem.patch; then
@@ -515,6 +515,11 @@ if ${aufRechenknecht}; then
cleanUp
exit 1
fi
+ cp makepkg-{i686,pentium4}.conf
+ if ! patch -p0 -i makepkg-pentium4.patch; then
+ cleanUp
+ exit 1
+ fi
eval "$(
grep '^SRCDEST=' makepkg.conf
diff --git a/makepkg-pentium4.patch b/makepkg-pentium4.patch
new file mode 100644
index 00000000..ef949440
--- /dev/null
+++ b/makepkg-pentium4.patch
@@ -0,0 +1,19 @@
+--- makepkg-pentium4.conf 2019-04-13 17:03:11.540419301 +0200
++++ makepkg-pentium4.conf 2019-04-13 17:04:45.040742728 +0200
+@@ -32,13 +32,13 @@
+ # ARCHITECTURE, COMPILE FLAGS
+ #########################################################################
+ #
+-CARCH="i686"
++CARCH="pentium4"
+ CHOST="i686-pc-linux-gnu"
+
+ #-- Compiler and Linker Flags
+ CPPFLAGS="-D_FORTIFY_SOURCE=2"
+-CFLAGS="-m32 -march=i686 -mtune=generic -O2 -pipe -fno-plt"
+-CXXFLAGS="-m32 -march=i686 -mtune=generic -O2 -pipe -fno-plt"
++CFLAGS="-m32 -march=pentium4 -mtune=generic -O2 -pipe -fno-plt"
++CXXFLAGS="-m32 -march=pentium4 -mtune=generic -O2 -pipe -fno-plt"
+ LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
+ #-- Make Flags: change this for DistCC/SMP systems
+ MAKEFLAGS="-j4"