aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-11-06 10:25:25 +1100
committerStefano Brivio <sbrivio@redhat.com>2024-11-07 12:46:59 +0100
commit13fc6d511eb89b15a0941c63ae44f147572b1470 (patch)
tree8fa7257ef2127edc0db00c6c56675fab7135f125
parent7917159005d41d2f87213645e9460534beb1e14f (diff)
downloadpasst-13fc6d511eb89b15a0941c63ae44f147572b1470.tar
passt-13fc6d511eb89b15a0941c63ae44f147572b1470.tar.gz
passt-13fc6d511eb89b15a0941c63ae44f147572b1470.tar.bz2
passt-13fc6d511eb89b15a0941c63ae44f147572b1470.tar.lz
passt-13fc6d511eb89b15a0941c63ae44f147572b1470.tar.xz
passt-13fc6d511eb89b15a0941c63ae44f147572b1470.tar.zst
passt-13fc6d511eb89b15a0941c63ae44f147572b1470.zip
Makefile: Use -DARCH for qrap only
We insert -DARCH for all compiles, based on TARGET_ARCH determined in the Makefile. However, this is only used in qrap.c, not anywhere else in passt or pasta. Only supply this -D when compiling qrap specifically. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c521d04..2a8540a 100644
--- a/Makefile
+++ b/Makefile
@@ -37,7 +37,6 @@ FLAGS += -pedantic -std=c11 -D_XOPEN_SOURCE=700 -D_GNU_SOURCE
FLAGS += $(FORTIFY_FLAG) -O2 -pie -fPIE
FLAGS += -DPAGE_SIZE=$(shell getconf PAGE_SIZE)
FLAGS += -DRLIMIT_STACK_VAL=$(RLIMIT_STACK_VAL)
-FLAGS += -DARCH=\"$(TARGET_ARCH)\"
FLAGS += -DVERSION=\"$(VERSION)\"
FLAGS += -DDUAL_STACK_SOCKETS=$(DUAL_STACK_SOCKETS)
@@ -107,7 +106,7 @@ pasta.avx2 pasta.1 pasta: pasta%: passt%
ln -sf $< $@
qrap: $(QRAP_SRCS) passt.h
- $(CC) $(FLAGS) $(CFLAGS) $(CPPFLAGS) $(QRAP_SRCS) -o qrap $(LDFLAGS)
+ $(CC) $(FLAGS) $(CFLAGS) $(CPPFLAGS) -DARCH=\"$(TARGET_ARCH)\" $(QRAP_SRCS) -o qrap $(LDFLAGS)
valgrind: EXTRA_SYSCALLS += rt_sigprocmask rt_sigtimedwait rt_sigaction \
rt_sigreturn getpid gettid kill clock_gettime mmap \