mirror of
https://github.com/golang/go
synced 2024-11-26 03:07:57 -07:00
01dd57b312
When the C API being used includes multiple names for the same underlying symbol (e.g. multiple #define's for the same variable), then cgo will generate the same placeholder variables for each name. This then prevents the code from compiling due to multiple declarations of the same variable - so change cgo to only create one instance of the variable for the underlying symbol. R=rsc CC=golang-dev https://golang.org/cl/4826055
27 lines
430 B
Makefile
27 lines
430 B
Makefile
# Copyright 2011 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=runtime/cgotest
|
|
|
|
CGOFILES=\
|
|
align.go\
|
|
basic.go\
|
|
callback.go\
|
|
env.go\
|
|
exports.go\
|
|
issue1222.go\
|
|
issue1328.go\
|
|
issue1560.go\
|
|
duplicate_symbol.go\
|
|
|
|
CGO_OFILES=\
|
|
callback_c.o\
|
|
|
|
OFILES=\
|
|
runtime.$O\
|
|
|
|
include ../../../src/Make.pkg
|