From 2c7afa511ced3df2af3c6192e08a727d2fcc2205 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 29 May 2019 15:44:25 +0200 Subject: sys/targets: fix freebsd/386 executor build on some hosts Add -B/usr/lib32 to 386 build flags. The story behind -B/usr/lib32 is not completely clear, but it helps in some cases. For context see discussion in https://github.com/google/syzkaller/pull/1202 --- sys/targets/targets.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'sys') diff --git a/sys/targets/targets.go b/sys/targets/targets.go index 787816159..3fd662a6d 100644 --- a/sys/targets/targets.go +++ b/sys/targets/targets.go @@ -183,11 +183,13 @@ var List = map[string]map[string]*Target{ NeedSyscallDefine: dontNeedSyscallDefine, }, "386": { - VMArch: "amd64", - PtrSize: 4, - PageSize: 4 << 10, - CFlags: []string{"-m32"}, - CrossCFlags: []string{"-m32", "-static"}, + VMArch: "amd64", + PtrSize: 4, + PageSize: 4 << 10, + CFlags: []string{"-m32"}, + // The story behind -B/usr/lib32 is not completely clear, but it helps in some cases. + // For context see discussion in https://github.com/google/syzkaller/pull/1202 + CrossCFlags: []string{"-m32", "-static", "-B/usr/lib32"}, NeedSyscallDefine: dontNeedSyscallDefine, }, }, -- cgit mrf-deployment