We would like to be able to build a shared library of OpenBLAS using 64 bit integers, and add a prefix or suffix to all functions exported from that shared library, so that we can also load a separate 32-bit-integer shared library OpenBLAS (or Netlib, Atlas, Accelerate, etc) with conventional function names into the same process without having conflicting ABI's. Ref JuliaLang/julia#4923
I found a way to modify https://github.com/xianyi/OpenBLAS/blob/a69dd3fbc5c38f7098d1539a69963c0d2bd3163a/exports/gensymbol#L2827-L2873 for the Windows case, and something similar may also work for OSX. I'm stuck on Linux though. We tried using objcopy, but that is apparently unable to modify dynamic symbols. Any ideas?