Skip to content

Commit

Permalink
croot: remove -m64 and -rdynamic from #cgo LDFLAGS
Browse files Browse the repository at this point in the history
Fixes #12.
  • Loading branch information
sbinet committed May 30, 2018
1 parent 04c3712 commit 2dce8cd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion gen-croot.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,5 +228,12 @@ func copyFile(dst, src string) error {
}

func trim(b []byte) []byte {
return bytes.TrimRight(b, "\r\n")
o := bytes.TrimRight(b, "\r\n")
o = bytes.Replace(o, []byte(" -m64 "), []byte(" "), -1)
o = bytes.Replace(o, []byte(" -m64"), []byte(""), -1)
o = bytes.Replace(o, []byte("-m64 "), []byte(""), -1)
o = bytes.Replace(o, []byte(" -rdynamic "), []byte(" "), -1)
o = bytes.Replace(o, []byte(" -rdynamic"), []byte(""), -1)
o = bytes.Replace(o, []byte("-rdynamic "), []byte(""), -1)
return o
}

0 comments on commit 2dce8cd

Please sign in to comment.