“ld: unknown option: -Bsymbolic” when trying to build iniparser on OSX
up vote
1
down vote
favorite
I'm trying to build http://github.com/ndevilla/iniparser on OSX, but getting:
~/ 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
This seems to not be a known issue with the code itself. What do I need to adjust on my system?
macos build ld
add a comment |
up vote
1
down vote
favorite
I'm trying to build http://github.com/ndevilla/iniparser on OSX, but getting:
~/ 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
This seems to not be a known issue with the code itself. What do I need to adjust on my system?
macos build ld
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I'm trying to build http://github.com/ndevilla/iniparser on OSX, but getting:
~/ 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
This seems to not be a known issue with the code itself. What do I need to adjust on my system?
macos build ld
I'm trying to build http://github.com/ndevilla/iniparser on OSX, but getting:
~/ 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
This seems to not be a known issue with the code itself. What do I need to adjust on my system?
macos build ld
macos build ld
asked Feb 26 '13 at 13:21
GJ.
2,21764269
2,21764269
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
2
down vote
accepted
The -Bsymbolic
flag specified in the Makefile
of that project is specific to the GNU linker and platforms using the ELF binary format. OS X uses neither. The Makefile
has several other flags that aren't compatible with the OS X toolchain, such as the use of the .so
extension for shared libraries rather than .dylib
, and another unsupported linker flag (-Wl,-soname=…
). You should be able to remove the unsupported linker flags and then fix up the file extensions to make things work.
add a comment |
up vote
0
down vote
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"
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
The -Bsymbolic
flag specified in the Makefile
of that project is specific to the GNU linker and platforms using the ELF binary format. OS X uses neither. The Makefile
has several other flags that aren't compatible with the OS X toolchain, such as the use of the .so
extension for shared libraries rather than .dylib
, and another unsupported linker flag (-Wl,-soname=…
). You should be able to remove the unsupported linker flags and then fix up the file extensions to make things work.
add a comment |
up vote
2
down vote
accepted
The -Bsymbolic
flag specified in the Makefile
of that project is specific to the GNU linker and platforms using the ELF binary format. OS X uses neither. The Makefile
has several other flags that aren't compatible with the OS X toolchain, such as the use of the .so
extension for shared libraries rather than .dylib
, and another unsupported linker flag (-Wl,-soname=…
). You should be able to remove the unsupported linker flags and then fix up the file extensions to make things work.
add a comment |
up vote
2
down vote
accepted
up vote
2
down vote
accepted
The -Bsymbolic
flag specified in the Makefile
of that project is specific to the GNU linker and platforms using the ELF binary format. OS X uses neither. The Makefile
has several other flags that aren't compatible with the OS X toolchain, such as the use of the .so
extension for shared libraries rather than .dylib
, and another unsupported linker flag (-Wl,-soname=…
). You should be able to remove the unsupported linker flags and then fix up the file extensions to make things work.
The -Bsymbolic
flag specified in the Makefile
of that project is specific to the GNU linker and platforms using the ELF binary format. OS X uses neither. The Makefile
has several other flags that aren't compatible with the OS X toolchain, such as the use of the .so
extension for shared libraries rather than .dylib
, and another unsupported linker flag (-Wl,-soname=…
). You should be able to remove the unsupported linker flags and then fix up the file extensions to make things work.
answered Feb 27 '13 at 7:00
bdash
14.9k13676
14.9k13676
add a comment |
add a comment |
up vote
0
down vote
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"
add a comment |
up vote
0
down vote
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"
add a comment |
up vote
0
down vote
up vote
0
down vote
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"
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"
edited 2 days ago
rlandster
2,90993969
2,90993969
answered 2 days ago
Beckon
117
117
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f15090198%2fld-unknown-option-bsymbolic-when-trying-to-build-iniparser-on-osx%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password