diff options
| -rw-r--r-- | samples/seccomp/Makefile | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/samples/seccomp/Makefile b/samples/seccomp/Makefile index 16aa2d424985..bbbd276659ba 100644 --- a/samples/seccomp/Makefile +++ b/samples/seccomp/Makefile | |||
| @@ -18,14 +18,22 @@ HOSTCFLAGS_bpf-direct.o += -idirafter $(objtree)/include | |||
| 18 | bpf-direct-objs := bpf-direct.o | 18 | bpf-direct-objs := bpf-direct.o |
| 19 | 19 | ||
| 20 | # Try to match the kernel target. | 20 | # Try to match the kernel target. |
| 21 | ifeq ($(CONFIG_64BIT),) | 21 | ifndef CONFIG_64BIT |
| 22 | HOSTCFLAGS_bpf-direct.o += -m32 | 22 | |
| 23 | HOSTCFLAGS_dropper.o += -m32 | 23 | # s390 has -m31 flag to build 31 bit binaries |
| 24 | HOSTCFLAGS_bpf-helper.o += -m32 | 24 | ifndef CONFIG_S390 |
| 25 | HOSTCFLAGS_bpf-fancy.o += -m32 | 25 | MFLAG = -m32 |
| 26 | HOSTLOADLIBES_bpf-direct += -m32 | 26 | else |
| 27 | HOSTLOADLIBES_bpf-fancy += -m32 | 27 | MFLAG = -m31 |
| 28 | HOSTLOADLIBES_dropper += -m32 | 28 | endif |
| 29 | |||
| 30 | HOSTCFLAGS_bpf-direct.o += $(MFLAG) | ||
| 31 | HOSTCFLAGS_dropper.o += $(MFLAG) | ||
| 32 | HOSTCFLAGS_bpf-helper.o += $(MFLAG) | ||
| 33 | HOSTCFLAGS_bpf-fancy.o += $(MFLAG) | ||
| 34 | HOSTLOADLIBES_bpf-direct += $(MFLAG) | ||
| 35 | HOSTLOADLIBES_bpf-fancy += $(MFLAG) | ||
| 36 | HOSTLOADLIBES_dropper += $(MFLAG) | ||
| 29 | endif | 37 | endif |
| 30 | 38 | ||
| 31 | # Tell kbuild to always build the programs | 39 | # Tell kbuild to always build the programs |
