diff options
author | emaste <emaste@FreeBSD.org> | 2016-01-22 02:28:17 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2016-01-22 02:28:17 +0000 |
commit | a1a70ee565543b50a1d46d80f0827fb69edb1be2 (patch) | |
tree | 8bba1988049fa3a93c55d1e857e0ce28778040a8 /gnu/lib | |
parent | 0d9f222414fe127fd4717ef4182735db52c6e6b6 (diff) | |
download | FreeBSD-src-a1a70ee565543b50a1d46d80f0827fb69edb1be2.zip FreeBSD-src-a1a70ee565543b50a1d46d80f0827fb69edb1be2.tar.gz |
Remove old generated unwind.h when using LLVM libunwind
When not using LLVM libunwind, unwind.h is a generated header and a stale
copy may remain in the OBJDIR after enabling LLVM libunwind. Explicitly
remove it.
Reported by: bz
Reviewed by: bdrewery
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D5019
Diffstat (limited to 'gnu/lib')
-rw-r--r-- | gnu/lib/libgcc/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/lib/libgcc/Makefile b/gnu/lib/libgcc/Makefile index ec3c7f4..f3166e7 100644 --- a/gnu/lib/libgcc/Makefile +++ b/gnu/lib/libgcc/Makefile @@ -193,7 +193,12 @@ LIB2_DIVMOD_FUNCS:= ${LIB2_DIVMOD_FUNCS:S/${sym}//g} .endif COMMONHDRS= tm.h tconfig.h options.h gthr-default.h -.if ${MK_LLVM_LIBUNWIND} == no +.if ${MK_LLVM_LIBUNWIND} != "no" +# unwind.h is a generated file when MK_LLVM_LIBUNWIND == "no", and a stale +# copy may be left behind in OBJDIR when switching, so remove it explicitly. +beforebuild: + @rm -f ${.OBJDIR}/unwind.h +.else COMMONHDRS+= unwind.h .endif |