Wed Jan 29 22:40:44 2020 UTC ()
Hack for clang.


(christos)
diff -r1.21 -r1.22 src/external/bsd/atf/lib/libatf-c/Makefile

cvs diff -r1.21 -r1.22 src/external/bsd/atf/lib/libatf-c/Makefile (expand / switch to unified diff)

--- src/external/bsd/atf/lib/libatf-c/Makefile 2014/03/02 22:50:13 1.21
+++ src/external/bsd/atf/lib/libatf-c/Makefile 2020/01/29 22:40:44 1.22
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.21 2014/03/02 22:50:13 jmmv Exp $ 1# $NetBSD: Makefile,v 1.22 2020/01/29 22:40:44 christos Exp $
2 2
3NOLINT= # defined 3NOLINT= # defined
4 4
5.include <bsd.init.mk> 5.include <bsd.init.mk>
6 6
7LIB= atf-c 7LIB= atf-c
8 8
9CWARNFLAGS+= -Wno-format 9CWARNFLAGS+= -Wno-format
10CWARNFLAGS+= -Wno-missing-noreturn 10CWARNFLAGS+= -Wno-missing-noreturn
11 11
12.PATH: ${SRCDIR} 12.PATH: ${SRCDIR}
13.PATH: ${SRCDIR}/atf-c 13.PATH: ${SRCDIR}/atf-c
14.PATH: ${SRCDIR}/atf-c/detail 14.PATH: ${SRCDIR}/atf-c/detail
@@ -43,26 +43,28 @@ INCS= build.h \ @@ -43,26 +43,28 @@ INCS= build.h \
43 error.h \ 43 error.h \
44 error_fwd.h \ 44 error_fwd.h \
45 macros.h \ 45 macros.h \
46 tc.h \ 46 tc.h \
47 tp.h \ 47 tp.h \
48 utils.h 48 utils.h
49INCSDIR= /usr/include/atf-c 49INCSDIR= /usr/include/atf-c
50 50
51INCS+= atf-c.h 51INCS+= atf-c.h
52INCSDIR_atf-c.h=/usr/include 52INCSDIR_atf-c.h=/usr/include
53 53
54MAN= atf-c-api.3 54MAN= atf-c-api.3
55 55
 56COPTS.tc.c+= ${${ACTIVE_CC} == "clang" && ${MACHINE_ARCH} == "powerpc":? -O0 :}
 57
56.if ${MKSHARE} != "no" 58.if ${MKSHARE} != "no"
57FILES+= atf-c.pc 59FILES+= atf-c.pc
58FILESDIR= /usr/lib/pkgconfig 60FILESDIR= /usr/lib/pkgconfig
59 61
60realall: atf-c.pc 62realall: atf-c.pc
61atf-c.pc: Makefile atf-c.pc.in atf-version.txt 63atf-c.pc: Makefile atf-c.pc.in atf-version.txt
62 ${TOOL_SED} -e "s,__ATF_VERSION__,$$(cat atf-version.txt),g" \ 64 ${TOOL_SED} -e "s,__ATF_VERSION__,$$(cat atf-version.txt),g" \
63 -e 's,__CC__,gcc,g' \ 65 -e 's,__CC__,gcc,g' \
64 -e 's,__INCLUDEDIR__,/usr/include,g' \ 66 -e 's,__INCLUDEDIR__,/usr/include,g' \
65 -e 's,__LIBDIR__,/usr/lib,g' \ 67 -e 's,__LIBDIR__,/usr/lib,g' \
66 <${SRCDIR}/atf-c/atf-c.pc.in >atf-c.pc 68 <${SRCDIR}/atf-c/atf-c.pc.in >atf-c.pc
67CLEANFILES+= atf-c.pc 69CLEANFILES+= atf-c.pc
68.endif 70.endif