diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-05-29 15:44:25 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-05-29 15:44:25 +0200 |
| commit | 2c7afa511ced3df2af3c6192e08a727d2fcc2205 (patch) | |
| tree | 3157f629be7f3284b3282a9820dd82628f3e8bcb /sys | |
| parent | f5a25d38ac7d97da62dafe2c809672e89f40aa25 (diff) | |
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
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/targets/targets.go | 12 |
1 files changed, 7 insertions, 5 deletions
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, }, }, |
