The following diff fixes building the LLVM port on arm.

pickles$ make install
===>  Verifying specs: c++ c++abi pthread c edit m pthread z
===>  found c++.5.0 c++abi.3.0 pthread.26.1 c.96.0 edit.5.2 m.10.1 z.5.0
===>  Installing llvm-10.0.1p3 from /usr/ports/packages/arm/all/
llvm-10.0.1p3: ok
New and changed readme(s):
        /usr/local/share/doc/pkg-readmes/llvm
pickles$ /usr/local/bin/clang --version
clang version 10.0.1
Target: arm-unknown-openbsd6.8
Thread model: posix
InstalledDir: /usr/local/bin



Index: Makefile
===================================================================
RCS file: /home/cvs/ports/devel/llvm/Makefile,v
retrieving revision 1.263
diff -u -p -u -p -r1.263 Makefile
--- Makefile    4 Sep 2020 09:55:35 -0000       1.263
+++ Makefile    3 Nov 2020 17:48:10 -0000
@@ -109,10 +109,7 @@ CXXFLAGS +=        -fno-ret-protector
 CXXFLAGS +=    -mno-retpoline
 .endif
 
-.if ${MACHINE_ARCH} == "arm"
-CFLAGS +=              -mlong-calls
-CXXFLAGS +=            -mlong-calls
-.elif ${MACHINE_ARCH} == "powerpc"
+.if ${MACHINE_ARCH} == "powerpc"
 CONFIGURE_ARGS +=      -DCMAKE_EXE_LINKER_FLAGS="-Wl,-relax"
 CONFIGURE_ARGS +=      -DCMAKE_SHARED_LINKER_FLAGS="-Wl,-relax"
 .endif

Reply via email to