From cedddd1dcdf358596ed57db993608e8bc9a49035 Mon Sep 17 00:00:00 2001 From: John Marino Date: Fri, 22 May 2015 09:40:24 -0700 Subject: [PATCH] WORLD_CCVER: Fix buildworld with clangXX The backtrace library requires unwind.h to build. This file was never created, so the base GCC's would fall back to the version in /usr/libdata. Clang compilers from ports don't have unwind.h so they were failing on the world build (building gcc50). This modification makes unwind.h available for backtrace.c and allows the build to complete with WORLD_CCVER=clang36 --- gnu/usr.bin/cc50/support-libs/libbacktrace/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gnu/usr.bin/cc50/support-libs/libbacktrace/Makefile b/gnu/usr.bin/cc50/support-libs/libbacktrace/Makefile index 9dbd674f9a..13ac38caec 100644 --- a/gnu/usr.bin/cc50/support-libs/libbacktrace/Makefile +++ b/gnu/usr.bin/cc50/support-libs/libbacktrace/Makefile @@ -3,6 +3,7 @@ GCC_NO_LIBS= yes LOCAL_CONFIG= yes .include "../Makefile.inc" .PATH: ${GCCDIR}/libbacktrace +.PATH: ${GCCDIR}/libgcc LIB= backtrace INTERNALLIB= YES @@ -22,4 +23,11 @@ SRCS= atomic.c \ mmapio.c \ mmap.c +backtrace.o: unwind.h + +unwind.h: unwind-generic.h + cp ${.ALLSRC} ${.TARGET} + +CLEANFILES= unwind.h + .include -- 2.41.0