title: x86 Cygwin ld not resolve references from w32api libraries at x86_64 system
body: <p>I've done fresh install of cygwin with setup-x86.exe @ Win10 LTSB 2015 x64.</p>
  
  <p>I've installed <code>gcc-core</code> and <code>w32api-runtime</code> packages.</p>
  
  <p><code>opengl32.dll</code> in System32 folder is 32-bit dll.</p>
  
  <p>With x86_64 install of cygwin <code>ld</code> able to find reference to wglCreateContext, with x86 - not.</p>
  
  <pre><code>$ gcc -o /tmp/conftest.exe /tmp/conftest.c -lopengl32
  /tmp/ccec30zH.o:conftest.c:(.text+0xc): undefined reference to `wglCreateContext'
  </code></pre>
  
  <p>conftest.c:</p>
  
  <pre><code>#ifdef __cplusplus
  extern "C"
  #endif
  char wglCreateContext ();
  int
  main ()
  {
  return wglCreateContext ();
    ;
    return 0;
  }
  </code></pre>