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 Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1475533 Title: cmd/go: "#cgo pkg-config:" comments do not work with gccgo To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/1475533/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs