There were three issues that needed fixing: LIBFLAGS was always being
cleared, tools/util.o was not being cleaned up correctly, and the arch
token for 32-bit x86 was not defined correctly for the tools.

Signed-off-by: Paul Moore <[email protected]>
---
 macros.mk      |    2 +-
 tools/Makefile |    2 +-
 tools/util.c   |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/macros.mk b/macros.mk
index 9a80a1a..763c4df 100644
--- a/macros.mk
+++ b/macros.mk
@@ -43,7 +43,7 @@ TOPDIR := $(shell \
 V ?= 0
 
 CPPFLAGS += -I$(TOPDIR) -I$(TOPDIR)/include
-LIBFLAGS =
+LIBFLAGS +=
 
 CFLAGS ?= -Wl,-z,relro -Wall -O0 -g -fvisibility=hidden
 CFLAGS += -fPIC
diff --git a/tools/Makefile b/tools/Makefile
index adb7e43..6e3101f 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -67,4 +67,4 @@ install: $(TOOLS_INSTALL)
        $(INSTALL_BIN_MACRO)
 
 clean:
-       $(RM) $(DEPS_TOOLS) $(DEPS_OBJS) $(TOOLS)
+       $(RM) $(DEPS_TOOLS) $(DEPS_OBJS) $(TOOLS) $(OBJS)
diff --git a/tools/util.c b/tools/util.c
index 0d6932c..cbb7866 100644
--- a/tools/util.c
+++ b/tools/util.c
@@ -33,7 +33,7 @@
 
 /* determine the native architecture */
 #if __i386__
-#define ARCH_NATIVE            AUDIT_ARCH_X86
+#define ARCH_NATIVE            AUDIT_ARCH_I386
 #elif __x86_64__
 #ifdef __ILP32__
 #define ARCH_NATIVE            AUDIT_ARCH_X86_64


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
libseccomp-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libseccomp-discuss

Reply via email to