copy across GCC 6.4 mknative-gcc into mknative-gcc.old.

This commit is contained in:
mrg 2018-09-05 01:20:20 +00:00
parent 7ef108d600
commit 958a20d339
1 changed files with 12 additions and 8 deletions

View File

@ -1,10 +1,10 @@
#!/bin/sh
# $NetBSD: mknative-gcc.old,v 1.5 2017/10/04 21:42:20 christos Exp $
# $NetBSD: mknative-gcc.old,v 1.6 2018/09/05 01:20:20 mrg Exp $
#
# Shell script for generating all the constants needed for a native
# platform build of gcc.
#
# This version is for GCC 5.3
# This version is for GCC 6.4
# initialise
@ -71,7 +71,9 @@ get_libgcc () {
cd $_TMPDIR/$_PLATFORM/libgcc
{
getvars $_PLATFORM/libgcc/Makefile \
INCLUDES LIB2ADD LIB2ADDEH LIB2ADD_ST \
INCLUDES \
INTERNAL_CFLAGS \
LIB2ADD LIB2ADDEH LIB2ADD_ST \
LIB1ASMFUNCS LIB1ASMSRC \
LIB2_DIVMOD_FUNCS LIB2FUNCS_ST \
LIB2FUNCS_EXTRA \
@ -221,6 +223,9 @@ get_libstdcxx_v3 () {
<$_TMPDIR/$_PLATFORM/libstdc++-v3/include/gstdint.h
{
getvars $_PLATFORM/libstdc++-v3/Makefile \
port_specific_symbol_files
# libsupc++
getvars $_PLATFORM/libstdc++-v3/libsupc++/Makefile \
sources | sed 's/^G_sources=/G_LIBSUPCXX_SOURCES=/'
@ -303,7 +308,7 @@ get_gcc () {
-e 's#build/##g'
getvars gcc/Makefile \
ALL_CFLAGS ALL_CPPFLAGS C_AND_OBJC_OBJS C_OBJS CCCP_OBJS \
GCC_OBJS GCOV_OBJS GXX_OBJS GTM_H PROTO_OBJS ${_extravars1} \
GCC_OBJS GCOV_OBJS GCOV_DUMP_OBJS GXX_OBJS GTM_H PROTO_OBJS ${_extravars1} \
INCLUDES md_file OBJC_OBJS OBJS out_file version \
BUILD_PREFIX RTL_H RTL_BASE_H TREE_H ${_hconfig_h} BASIC_BLOCK_H GCC_H \
GGC_H \
@ -366,10 +371,9 @@ __EOF__
if [ "${f}" = "configargs" ]
then
_srcquoted=$(echo "$_SRC" | sed 's/\//\\\//g')
ex <<__EOF__ $_OUTDIR/usr.bin/$_subdir/arch/$MACHINE_ARCH/$f.h
/static const char configuration_arguments/ s/$_srcquoted/\/usr\/src/g
wq
__EOF__
sed -i -E -e "s,$_srcquoted,/usr/src,g" \
-e 's/--build=[^ ]+ --host=([^ ]+)/--build=\1 --host=\1/' \
$_OUTDIR/usr.bin/$_subdir/arch/$MACHINE_ARCH/$f.h
fi
done