Closed
Description
It seems when llvm was built using clang, llvm-config --cxxflags
can produce options gcc-g++ does not understand [1], hence attempting to build crystal from source fails with errors like
g++: error: unrecognized command line option '-Wcovered-switch-default'
On a related note, on multilib Slackware the 64bit libraries reside in /usr/lib64 while the prebuilt x86_64 crystal version attempts to use /usr/lib and fails with errors like
/usr/lib64/gcc/x86_64-slackware-linux/5.5.0/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
Is there a way to make --link-flags "-L/usr/lib64"
default for crystal build
and similar commands?
[1] See also rust-lang/rust#14663
Metadata
Metadata
Assignees
Labels
No labels