sethrfore / homebrew-r-srf

Custom Homebrew R formula with tcl-tk support and additional options
59 stars 16 forks source link

llvm 10 #26

Closed neverfox closed 4 years ago

neverfox commented 4 years ago

I haven't been able to find any word on this but it seems that installing packages from source has started to fail with llvm 10, which landed on Homebrew earlier this week as the latest version. Are you aware of anything about this?

ld: unknown option: -platform_version
clang-10: error: linker command failed with exit code 1 (use -v to see invocation)

Here is my current and previously-working Makevars:

CC=/usr/local/opt/llvm/bin/clang
CXX=/usr/local/opt/llvm/bin/clang++
# -O3 should be faster than -O2 (default) level optimisation ..
CFLAGS=-g -O3 -Wall -pedantic -std=gnu99 -mtune=native -pipe
CXXFLAGS=-g -O3 -Wall -pedantic -std=c++11 -mtune=native -pipe
LDFLAGS=-L/usr/local/opt/gettext/lib -L/usr/local/opt/jpeg/lib -L/usr/local/opt/llvm/lib -L/usr/local/opt/udunits/lib -L/usr/local/opt/openblas/lib -Wl,-rpath,/usr/local/opt/llvm/lib
CPPFLAGS=-I/usr/local/opt/gettext/include -I/usr/local/opt/jpeg/include -I/usr/local/opt/llvm/include -I/usr/local/opt/udunits/include -I/usr/local/opt/openblas/include
neverfox commented 4 years ago

Solution