Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tools Enable support for --sysroot in binutils and gcc.
details: https://anonhg.NetBSD.org/src/rev/50afec324d5b
branches: trunk
changeset: 763544:50afec324d5b
user: joerg <joerg%NetBSD.org@localhost>
date: Thu Mar 24 13:33:42 2011 +0000
description:
Enable support for --sysroot in binutils and gcc.
diffstat:
tools/binutils/Makefile | 5 +++--
tools/gcc/Makefile | 7 +++++--
2 files changed, 8 insertions(+), 4 deletions(-)
diffs (42 lines):
diff -r 6235a9821703 -r 50afec324d5b tools/binutils/Makefile
--- a/tools/binutils/Makefile Thu Mar 24 13:31:30 2011 +0000
+++ b/tools/binutils/Makefile Thu Mar 24 13:33:42 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2009/11/20 22:51:29 skrll Exp $
+# $NetBSD: Makefile,v 1.19 2011/03/24 13:33:42 joerg Exp $
.include <bsd.own.mk>
@@ -9,7 +9,8 @@
BRANDING?= \
--with-pkgversion="NetBSD Binutils nb1" \
- --with-bugurl="http://www.NetBSD.org/support/send-pr.html"
+ --with-bugurl="http://www.NetBSD.org/support/send-pr.html" \
+ --with-lib-path="=/usr/lib" --with-sysroot
.else
BRANDING?=
.endif
diff -r 6235a9821703 -r 50afec324d5b tools/gcc/Makefile
--- a/tools/gcc/Makefile Thu Mar 24 13:31:30 2011 +0000
+++ b/tools/gcc/Makefile Thu Mar 24 13:33:42 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.34 2009/12/23 20:17:13 mrg Exp $
+# $NetBSD: Makefile,v 1.35 2011/03/24 13:33:42 joerg Exp $
.include <bsd.own.mk>
@@ -34,9 +34,12 @@
--program-transform-name="s,^,${MACHINE_GNU_PLATFORM}-," \
--enable-languages="${GCC_LANGUAGES}"
+GCC_CPPFLAGS= -DNETBSD_TOOLS -DTARGET_SYSTEM_ROOT=0 \
+ -DTARGET_SYSTEM_ROOT_RELOCATABLE
+
MAKE_ARGS= MACHINE= MAKEINFO=${TOOL_MAKEINFO:Q} \
LIBGCC= LIBGCC1= LIBGCC1_TEST= LIBGCC2= INSTALL_LIBGCC= \
- EXTRA_PARTS= CPPFLAGS=-DNETBSD_TOOLS \
+ EXTRA_PARTS= CPPFLAGS=${GCC_CPPFLAGS:Q} \
AR=${HOST_AR:Q} RANLIB=${HOST_RANLIB:Q}
CONFIGURE_ENV+= gcc_cv_libc_provides_ssp=yes
Home |
Main Index |
Thread Index |
Old Index