aboutgitcodebugslistschat
path: root/Makefile
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2023-02-28 00:53:01 +0100
committerStefano Brivio <sbrivio@redhat.com>2023-03-09 00:36:03 +0100
commit0d8c114aa25cb093607feea5d98ce81d7389aa73 (patch)
tree87f77a218c2f0d1fb9f7c4fc1f1cc66a1d6e8419 /Makefile
parentc538ee8d695de053dc9da8965c85997a79fb6cb2 (diff)
downloadpasst-0d8c114aa25cb093607feea5d98ce81d7389aa73.tar
passt-0d8c114aa25cb093607feea5d98ce81d7389aa73.tar.gz
passt-0d8c114aa25cb093607feea5d98ce81d7389aa73.tar.bz2
passt-0d8c114aa25cb093607feea5d98ce81d7389aa73.tar.lz
passt-0d8c114aa25cb093607feea5d98ce81d7389aa73.tar.xz
passt-0d8c114aa25cb093607feea5d98ce81d7389aa73.tar.zst
passt-0d8c114aa25cb093607feea5d98ce81d7389aa73.zip
Makefile, seccomp.sh: Fix cross-builds, adjust syscalls list to compiler
Debian cross-building automatic checks: http://crossqa.debian.net/src/passt currently fail because we don't use the right target architecture and compiler while building the system call lists and resolving their numbers in seccomp.sh. Pass ARCH and CC to seccomp.sh and use them. Signed-off-by: Stefano Brivio <sbrivio@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 667ddfb..e5723a7 100644
--- a/Makefile
+++ b/Makefile
@@ -105,7 +105,7 @@ static: FLAGS += -static -DGLIBC_NO_STATIC_NSS
static: clean all
seccomp.h: seccomp.sh $(PASST_SRCS) $(PASST_HEADERS)
- @ EXTRA_SYSCALLS="$(EXTRA_SYSCALLS)" ./seccomp.sh $(PASST_SRCS) $(PASST_HEADERS)
+ @ EXTRA_SYSCALLS="$(EXTRA_SYSCALLS)" ARCH="$(TARGET_ARCH)" CC="$(CC)" ./seccomp.sh $(PASST_SRCS) $(PASST_HEADERS)
passt: $(PASST_SRCS) $(HEADERS)
$(CC) $(FLAGS) $(CFLAGS) $(CPPFLAGS) $(PASST_SRCS) -o passt $(LDFLAGS)