Module Name:    src
Committed By:   christos
Date:           Fri Oct 14 14:41:59 UTC 2016

Modified Files:
        src/tools/gdb: Makefile

Log Message:
Fix the host build of aarch64 with clang


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/tools/gdb/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tools/gdb/Makefile
diff -u src/tools/gdb/Makefile:1.28 src/tools/gdb/Makefile:1.29
--- src/tools/gdb/Makefile:1.28	Wed Oct 12 14:43:40 2016
+++ src/tools/gdb/Makefile	Fri Oct 14 10:41:59 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.28 2016/10/12 18:43:40 christos Exp $
+#	$NetBSD: Makefile,v 1.29 2016/10/14 14:41:59 christos Exp $
 
 .include <bsd.own.mk>
 
@@ -17,10 +17,12 @@ INSTALL_TARGET=	install-gdb
 
 .include "${.CURDIR}/../Makefile.gmakehost"
 
-CCADDFLAGS=	--sysroot=${DESTDIR} -L${DESTDIR}/lib -L${DESTDIR}/usr/lib -B${DESTDIR}/usr/lib/ -I${.OBJDIR}/.native/gcc/include
+CCADDFLAGS+= --sysroot=${DESTDIR} -B${DESTDIR}/usr/lib/ -I${.OBJDIR}/.native/gcc/include
+LDADDFLAGS+= -L${DESTDIR}/lib -L${DESTDIR}/usr/lib
 CXXADDFLAGS+= -D__STDC_FORMAT_MACROS
 CXXADDFLAGS+= -D__STDC_LIMIT_MACROS
 CXXADDFLAGS+= -D__STDC_CONSTANT_MACROS
+HOST_CXXFLAGS+= ${CXXADDFLAGS}
 
 NEWCONFIGDIR?=	${.CURDIR}/../..
 MKNATIVE?=	${.CURDIR}/mknative-gdb

Reply via email to