[Bug 1475533] Re: cmd/go: "#cgo pkg-config:" comments do not work with gccgo
Matthias Klose
doko at ubuntu.com
Thu Oct 15 13:08:57 UTC 2015
as long as this is not yet implemented, you can work around this by:
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
ifneq (,$(filter $(DEB_HOST_ARCH), powerpc s390x))
pkg_configs = dbus-1 libnih libnih-dbus glib-2.0 gobject-2.0 ... and more
export CGO_CFLAGS := \
$(shell $(foreach pkg, $(pkg_configs), pkg-config --cflags $(pkg); ))
export CGO_CXXFLAGS := $(CGO_CFLAGS)
export CGO_LDFLAGS := \
$(shell $(foreach pkg, $(pkg_configs), pkg-config --libs $(pkg); ))
$(warning setting CGO_CFLAGS = $(CGO_CFLAGS))
$(warning setting CGO_CXXFLAGS = $(CGO_CXXFLAGS))
$(warning setting CGO_LDFLAGS = $(CGO_LDFLAGS))
endif
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-5 in Ubuntu.
https://bugs.launchpad.net/bugs/1475533
Title:
cmd/go: "#cgo pkg-config:" comments do not work with gccgo
Status in gcc:
Unknown
Status in gcc-5 package in Ubuntu:
Triaged
Bug description:
see https://github.com/golang/go/issues/11739
recipe for work around: https://github.com/lxc/go-lxc/issues/33
To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1475533/+subscriptions
More information about the foundations-bugs
mailing list