commit 6cf3564f69944712010e56a08d48c1cb467b9656
Author: Vasiliy Glazov <v.glazov(a)javad.com>
Date: Fri Jan 18 11:02:53 2019 +0300
Added asm volatile patch.
VirtualBox-remove-volatile-asm.patch | 18 ++++++++++++++++++
VirtualBox.spec | 2 ++
2 files changed, 20 insertions(+)
---
diff --git a/VirtualBox-remove-volatile-asm.patch b/VirtualBox-remove-volatile-asm.patch
new file mode 100644
index 0000000..30652ad
--- /dev/null
+++ b/VirtualBox-remove-volatile-asm.patch
@@ -0,0 +1,18 @@
+--- a/src/VBox/Runtime/r3/linux/semevent-linux.cpp
++++ b/src/VBox/Runtime/r3/linux/semevent-linux.cpp
+@@ -38,5 +38,5 @@
+ */
+ #include "../posix/semevent-posix.cpp"
+-asm volatile (".global epoll_pwait");
++__asm__ (".global epoll_pwait");
+
+ #else /* glibc < 2.6 */
+--- a/src/VBox/Runtime/r3/linux/semeventmulti-linux.cpp
++++ b/src/VBox/Runtime/r3/linux/semeventmulti-linux.cpp
+@@ -40,5 +40,5 @@
+ */
+ #include "../posix/semeventmulti-posix.cpp"
+-asm volatile (".global epoll_pwait");
++__asm__ (".global epoll_pwait");
+
+ #else /* glibc < 2.6 */
diff --git a/VirtualBox.spec b/VirtualBox.spec
index 0230125..5873796 100644
--- a/VirtualBox.spec
+++ b/VirtualBox.spec
@@ -73,6 +73,7 @@ Patch50: VirtualBox-5.1.0-add-Mageia-support.patch
Patch51: VirtualBox-5.1.0-revert-VBox.sh.patch
# from Fedora
Patch60: VirtualBox-5.2.10-xclient.patch
+Patch65: VirtualBox-remove-volatile-asm.patch
BuildRequires: kBuild >= 0.1.9998.r3093
@@ -293,6 +294,7 @@ rm -r src/libs/zlib-1.2.8/
#patch50 -p1 -b .mageia-support
%patch51 -p1 -b .revert-VBox.sh
%patch60 -p1 -b .xclient
+%patch65 -p1 -b .asm
%build
./configure --disable-kmods \