2

我正在尝试在 OSX上构建http://github.com/ndevilla/iniparser ,但得到:

~/ make
compiling src/iniparser.c ...
compiling src/dictionary.c ...
a - src/iniparser.o
a - src/dictionary.o
ld: unknown option: -Bsymbolic
collect2: ld returned 1 exit status
make: *** [libiniparser.so] Error 1

这似乎不是代码本身的已知问题。我需要在我的系统上进行什么调整?

4

2 回答 2

3
于 2013-02-27T07:00:01.247 回答
0

Using bdash's answer you can build iOS openssl-1.1.1 by doing the following:

sed -ie "s!-Bsymbolic! !" "Makefile"
sed -ie "s/-Wl,-soname=libssl\$(SHLIB_EXT)/ /g" "Makefile"
sed -ie "s/-Wl,-soname=libcrypto\$(SHLIB_EXT)/ /g" "Makefile"
sed -ie "s/--version-script=libcrypto.map/ /g" "Makefile"
sed -ie "s/--version-script=libssl.map/ /g" "Makefile"
于 2018-11-10T12:35:20.810 回答