mirror of
https://github.com/golang/go
synced 2024-11-25 08:17:58 -07:00
0cd3475386
#pragma dynexport is no longer needed for this use of cgo, since the gcc and gc code are now linked together into the same binary. It may still be necessary later. On the Mac, you cannot use the GOT to resolve symbols that exist in the current binary, so 6l and 8l translate the GOT-loading mov instructions into lea instructions. On ELF systems, we could use the GOT for those symbols, but for consistency 6l and 8l apply the same translation. The translation is sketchy in the extreme (depending on the relocation being in a mov instruction) but it verifies that the instruction is a mov before rewriting it to lea. Also makes typedefs global across files. Fixes #1335. Fixes #1345. R=iant, r CC=golang-dev https://golang.org/cl/3650042
22 lines
354 B
Makefile
22 lines
354 B
Makefile
# Copyright 2010 The Go Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style
|
|
# license that can be found in the LICENSE file.
|
|
|
|
include ../../../src/Make.inc
|
|
|
|
TARG=life
|
|
|
|
CGOFILES=\
|
|
life.go\
|
|
|
|
CGO_OFILES=\
|
|
c-life.o\
|
|
|
|
CLEANFILES+=life
|
|
|
|
include ../../../src/Make.pkg
|
|
|
|
life: install main.go
|
|
$(GC) main.go
|
|
$(LD) -o $@ main.$O
|