summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorShunsuke Mie <mie@igel.co.jp>2023-02-02 11:45:38 +0100
committerMichael S. Tsirkin <mst@redhat.com>2023-02-21 01:26:59 +0100
commit0d0ed4006127714e318c9a9d7796f5c8532a21e7 (patch)
treee72046ce2d219ce43bc86e1e305f193c41930e07 /tools
parentvringh: fix a typo in comments for vringh_kiov (diff)
downloadlinux-0d0ed4006127714e318c9a9d7796f5c8532a21e7.tar.xz
linux-0d0ed4006127714e318c9a9d7796f5c8532a21e7.zip
tools/virtio: enable to build with retpoline
Add build options to bring it close to a linux kernel. It allows for testing that is close to reality. Signed-off-by: Shunsuke Mie <mie@igel.co.jp> Message-Id: <20230202104538.2041879-1-mie@igel.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/virtio/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/virtio/Makefile b/tools/virtio/Makefile
index 1b25cc7c64bb..7b7139d97d74 100644
--- a/tools/virtio/Makefile
+++ b/tools/virtio/Makefile
@@ -4,7 +4,7 @@ test: virtio_test vringh_test
virtio_test: virtio_ring.o virtio_test.o
vringh_test: vringh_test.o vringh.o virtio_ring.o
-CFLAGS += -g -O2 -Werror -Wno-maybe-uninitialized -Wall -I. -I../include/ -I ../../usr/include/ -Wno-pointer-sign -fno-strict-overflow -fno-strict-aliasing -fno-common -MMD -U_FORTIFY_SOURCE -include ../../include/linux/kconfig.h
+CFLAGS += -g -O2 -Werror -Wno-maybe-uninitialized -Wall -I. -I../include/ -I ../../usr/include/ -Wno-pointer-sign -fno-strict-overflow -fno-strict-aliasing -fno-common -MMD -U_FORTIFY_SOURCE -include ../../include/linux/kconfig.h -mfunction-return=thunk -fcf-protection=none -mindirect-branch-register
CFLAGS += -pthread
LDFLAGS += -pthread
vpath %.c ../../drivers/virtio ../../drivers/vhost