CLD2Owners/cld2

Compilation error on Yosemite

Opened this issue · 1 comments

./compile_libs.sh Warning: None of CFLAGS, CXXFLAGS or CPPFLAGS is set; you probably should enable some options.
ld: unknown option: -soname=libcld2.so
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: unknown option: -soname=libcld2_full.so
clang: error: linker command failed with exit code 1 (use -v to see invocation)

is it available for Yosemite? please let me know

Thanks in advance,
Canh

You should only care about this if you need the shared libraries. Anyway, to get the compilation to work you can replace -o libcld2.so $LDFLAGS -Wl,-soname=libcld2.so with -o libcld2.dylib $LDFLAGS -Wl,-install_name,libcld2.dylib. (Note that the equal sign after soname got replaced by a comma.)

This will fix compilation and allow you to use the library in Python bindings such as chromium-compact-language-detector. But a proper fix would do more things related to library versions, I guess.