Unfortunately this change broke stuff for us.
If you have two .go files in the same package that use the same
C.SOMETHING constant, your build fails with:
inconsistent definitions for C.SOMETHING
One way to work around this is to define a const in one file, but maybe
it wasn't intended to break?
Regards,
Albert
On 2012/09/07 03:33:02, jsing wrote:
*** Submitted as
http://code.google.com/p/go/source/detail?r=41976e2fec9b ***
cgo: use debug data section for ELF
When generating enums use the debug data section instead of the
DWARF debug info, if it is available in the ELF file. This allows
mkerrors.sh to work correctly on OpenBSD/386 and NetBSD/386.
Fixes issue 2470.
R=golang-dev, minux.ma
CC=golang-dev
http://codereview.appspot.com/6495090
http://codereview.appspot.com/6495090/*** Submitted as
http://code.google.com/p/go/source/detail?r=41976e2fec9b ***
cgo: use debug data section for ELF
When generating enums use the debug data section instead of the
DWARF debug info, if it is available in the ELF file. This allows
mkerrors.sh to work correctly on OpenBSD/386 and NetBSD/386.
Fixes issue 2470.
R=golang-dev, minux.ma
CC=golang-dev
http://codereview.appspot.com/6495090