Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve documentation for building with go >=1.9.4 #19

Merged
merged 1 commit into from
Mar 23, 2020

Conversation

databus23
Copy link
Contributor

Newer versions of go have a whitelist of allowed compiler and linker flags:
https://github.com/golang/go/wiki/InvalidFlag

This cases compiliation to fail with rather cryptic error messages like:
go build github.com/SAP/gorfc/gorfc: invalid flag in #cgo LDFLAGS: -minline-all-stringops

As a shorterm fix this commit updates the documentation how to whitelist all flags to get the compilation going again.

Fixes #13

Newer versions of go have a whitelist of allowed compiler and linker flags:
https://github.com/golang/go/wiki/InvalidFlag

This cases compiliation to fail with rather cryptic error messages like:
  go build github.com/SAP/gorfc/gorfc: invalid flag in #cgo LDFLAGS: -minline-all-stringops

As a shorterm fix this commit updates the documentation how to whitelist all flags to get the compilation going again.
@bsrdjan bsrdjan merged commit 6fcb5cd into SAP-archive:master Mar 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CGO (compiler) error in linux
2 participants