Menu

#59 Properly pass -melf_* flags to linker

open
nobody
None
5
2016-02-10
2012-08-09
No

With recent gcc we get:

gcc -melf_x86_64 -shared -Wl,-soname=libatlas.so.3 \ -o libatlas.so.3.0 static_libs/*.o -lc -lpthread -lm
gcc: error: unrecognized command line option '-melf_x86_64'

The attached patch uses -Wl to pass these options to the linker.

Discussion

  • Orion Poplawski

    Orion Poplawski - 2012-08-09

    Patch to SpewMakeInc.c to pass -melf_* options to linker with -Wl

     
  • mnormand

    mnormand - 2016-02-10

    Is this patch still required ?

     

Log in to post a comment.