title: Go build with another glibc
body: <p>I have installed another version of GLIBC and want to compile Golang code against this new GLIBC.</p>
  
  <p>I have tried the following command for dynamic compilation:</p>
  
  <pre><code>go build --ldflags '-linkmode external -L /path/to/another_glibc/
  </code></pre>
  
  <p>But when I run ldd <code>"go_executable"</code>, it still shows linked to default glibc.</p>
  
  <p><strong>Output:</strong></p>
  
  <pre><code>linux-vdso.so.1 =&gt;  (0x00007fff29da7000)
  libc.so.6 =&gt; /lib/x86_64-linux-gnu/libc.so.6 (0x00007f128a93c000)
  /lib64/ld-linux-x86-64.so.2 (0x00007f128ad06000)
  </code></pre>
  
  <p><strong>Expected Output:</strong></p>
  
  <pre><code>linux-vdso.so.1 =&gt;  (0x00007fff45fa7000)
  libc.so.6 =&gt; /another_glibc/lib/libc.so.6 (0x00007f5cd2067000)
  /another_glibc/ld-2.29.so =&gt; /lib64/ld-linux-x86-64.so.2 (0x00007f5cd2420000)
  </code></pre>
  
  <p>What is missing here?</p>