Compile OpenSSL with the 'shared' option?

后端 未结 5 1216
逝去的感伤
逝去的感伤 2020-12-16 10:47

On CentOS 5.4, OpenSSL compiles fine without \'shared\' option. But when I passed that option the compilation fails with:

/usr/bin/ld: libcrypto.a(x86

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-16 10:58

    There is an option -fXXX that you can pass to config so you can do it with:

    ./config -fPIC shared
    

提交回复
热议问题