summaryrefslogtreecommitdiff
path: root/system/qemu/qemu.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/qemu/qemu.SlackBuild')
-rw-r--r--system/qemu/qemu.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/system/qemu/qemu.SlackBuild b/system/qemu/qemu.SlackBuild
index 9f8df7e2b5..7fb4149797 100644
--- a/system/qemu/qemu.SlackBuild
+++ b/system/qemu/qemu.SlackBuild
@@ -25,7 +25,7 @@
# Modified by the SlackBuilds.org project
PRGNAM=qemu
-VERSION=0.14.1
+VERSION=${VERSION:-1.0.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -67,6 +67,15 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
+# To get the stable-1.0 patches, do this in git checkout of qemu:
+# git format-patch v1.0.1..origin/stable-1.0
+#for i in $CWD/patches/*.patch ; do patch -p1 < $i ; done
+
+# Disable debug (hardcoded) and remove double CFLAGS
+sed -i "s|^CFLAGS=\"-g\ |CFLAGS=\"|" configure
+sed -i "s|^LDFLAGS=\"-g\ |LDFLAGS=\"|" configure
+sed -i "s|^\ \ CFLAGS=\"-O2\ | CFLAGS=\"|" configure
+
# --libdir isn't recognized and isn't needed anyway
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \