title: How to import value in GCCGO to perform something like go linker ldflags -X does in GC compiler
body: <p>Now, I have the bash code which can import the version value to the go source code in compiling time using the linker which is in the go tool. This code can run normally with GC. </p>
  
  <blockquote>
    <p>go build -ldflags "-X something:something" main.go</p>
  </blockquote>
  
  <p>But I am testing my code in the machine whose architecture only supports gccgo instead of gc, and gccgo does not support -ldflags which is a linker tool in gc. Though gccgo has flag options which is -gccgoflags, I didn't see the linking flag I need.</p>
  
  <p>I want to know whether there are any relative flags in gccgo or are there any alternative way to insert the value into source code?</p>
  
  <p>I don't want to hard code this feature with bash.</p>
  
  <p>Thanks.</p>