diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-06-05 17:14:47 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-06-06 10:02:03 +0200 |
| commit | 6479ab2a752ba9ef714199de69d096cee0e6db2d (patch) | |
| tree | 0bba334b61e1a2337cbd3e9af6e1b63ab12c480a /pkg/ipc | |
| parent | 65c0e1a37ca36fb4799f0d896182a3d070f7a034 (diff) | |
Makefile, sys/targets: move all native compilation logic to sys/targets
We currently have native cross-compilation logic duplicated
in Makefile and in sys/targets. Some pieces are missed in one
place, some are in another. Only pkg/csource knows how to check
for -static support.
Move all CC/CFLAGS logic to sys/targets and pull results in Makefile.
This should make Makefile work on distros that have broken x86_64-linux-gnu-gcc,
now we will use just gcc. And this removes the need to define NOSTATIC,
as it's always auto-detected.
This also paves the way for making pkg/csource work on OSes other than Linux.
Diffstat (limited to 'pkg/ipc')
| -rw-r--r-- | pkg/ipc/ipc.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/ipc/ipc.go b/pkg/ipc/ipc.go index 180f78cd7..695218e4f 100644 --- a/pkg/ipc/ipc.go +++ b/pkg/ipc/ipc.go @@ -128,7 +128,7 @@ func DefaultConfig() (*Config, *ExecOpts, error) { return nil, nil, fmt.Errorf("flag sandbox must contain one of none/setuid/namespace") } - sysTarget := targets.List[runtime.GOOS][runtime.GOARCH] + sysTarget := targets.Get(runtime.GOOS, runtime.GOARCH) if sysTarget.ExecutorUsesShmem { c.Flags |= FlagUseShmem } |
