Add tools
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
#! /bin/sh
|
||||
exit 0
|
||||
Binary file not shown.
@@ -0,0 +1,123 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Copyright (C) 2002, 2007, 2009 Free Software Foundation, Inc.
|
||||
|
||||
#This file is part of GCC.
|
||||
|
||||
#GCC is free software; you can redistribute it and/or modify it under
|
||||
#the terms of the GNU General Public License as published by the Free
|
||||
#Software Foundation; either version 3, or (at your option) any later
|
||||
#version.
|
||||
|
||||
#GCC is distributed in the hope that it will be useful, but WITHOUT
|
||||
#ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
#FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
#for more details.
|
||||
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with GCC; see the file COPYING3. If not see
|
||||
#<http://www.gnu.org/licenses/>.
|
||||
|
||||
# Basic information
|
||||
target=x86_64-unknown-redox
|
||||
target_noncanonical=x86_64-unknown-redox
|
||||
version=13.2.0
|
||||
|
||||
VERBOSE=0
|
||||
while [ x$1 = x-v ] ; do
|
||||
shift
|
||||
VERBOSE=`expr $VERBOSE + 1`
|
||||
done
|
||||
export VERBOSE
|
||||
|
||||
if [ x$1 = x--help ] ; then
|
||||
echo "Usage: mkheaders [options] [prefix [isysroot]]"
|
||||
echo "Options:"
|
||||
echo " -v Print more output (may be repeated for even more output)"
|
||||
echo " --help This help"
|
||||
echo " --version Print version information"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ x$1 = x--version ] ; then
|
||||
echo "mkheaders (GCC) version $version"
|
||||
echo "Copyright 2002, 2007, 2009 Free Software Foundation, Inc."
|
||||
echo "This program is free software; you may redistribute it under the"
|
||||
echo "terms of the GNU General Public License. This program has"
|
||||
echo "absolutely no warranty."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Common prefix for installation directories.
|
||||
if [ x$1 != x ] ; then
|
||||
prefix=$1
|
||||
shift
|
||||
else
|
||||
prefix=
|
||||
fi
|
||||
|
||||
# Allow for alternate isysroot in which to find headers
|
||||
if [ x$1 != x ] ; then
|
||||
isysroot=$1
|
||||
shift
|
||||
else
|
||||
isysroot=
|
||||
fi
|
||||
|
||||
# Directory in which to put host dependent programs and libraries
|
||||
exec_prefix=${prefix}
|
||||
# Directory in which to put the directories used by the compiler.
|
||||
libdir=${exec_prefix}/lib
|
||||
libexecdir=${exec_prefix}/libexec
|
||||
# Directory in which the compiler finds libraries, etc.
|
||||
libsubdir=${libdir}/gcc/${target_noncanonical}/${version}
|
||||
# Directory in which the compiler finds executables
|
||||
libexecsubdir=${libexecdir}/gcc/${target_noncanonical}/${version}
|
||||
|
||||
itoolsdir=${libexecsubdir}/install-tools
|
||||
itoolsdatadir=${libsubdir}/install-tools
|
||||
incdir=${libsubdir}/include-fixed
|
||||
mkinstalldirs="${itoolsdir}/mkinstalldirs"
|
||||
|
||||
cd ${itoolsdir}
|
||||
rm -rf ${incdir}/*
|
||||
|
||||
for shell in $CONFIG_SHELL $SHELL /bin/bash /bin/sh ""; do
|
||||
if { test -x $shell || test -x $shell.exe; } \
|
||||
&& $shell $mkinstalldirs > /dev/null 2>&1; then
|
||||
mkinstalldirs="$shell $mkinstalldirs"
|
||||
break
|
||||
elif test x$shell = x; then
|
||||
if $mkinstalldirs > /dev/null 2>&1; then
|
||||
break
|
||||
elif test ! -f $mkinstalldirs; then
|
||||
echo mkheaders: could not find $mkinstalldirs >&2
|
||||
exit 1
|
||||
else
|
||||
echo mkheaders: please rerun with CONFIG_SHELL set to a working Bourne shell >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
for ml in `cat ${itoolsdatadir}/fixinc_list`; do
|
||||
sysroot_headers_suffix=`echo ${ml} | sed -e 's/;.*$//'`
|
||||
multi_dir=`echo ${ml} | sed -e 's/^[^;]*;//'`
|
||||
subincdir=${incdir}${multi_dir}
|
||||
${mkinstalldirs} ${subincdir}
|
||||
. ${itoolsdatadir}/mkheaders.conf
|
||||
if [ x${STMP_FIXINC} != x ] ; then
|
||||
TARGET_MACHINE="${target}" target_canonical="${target}" \
|
||||
MACRO_LIST="${itoolsdatadir}/macro_list" \
|
||||
$shell ./fixinc.sh ${subincdir} \
|
||||
${isysroot}${SYSTEM_HEADER_DIR} ${OTHER_FIXINCLUDES_DIRS}
|
||||
rm -f ${subincdir}/syslimits.h
|
||||
if [ -f ${subincdir}/limits.h ]; then
|
||||
mv ${subincdir}/limits.h ${subincdir}/syslimits.h
|
||||
else
|
||||
cp ${itoolsdatadir}/gsyslimits.h ${subincdir}/syslimits.h
|
||||
fi
|
||||
fi
|
||||
|
||||
cp ${itoolsdatadir}/include${multi_dir}/limits.h ${subincdir}/limits.h
|
||||
done
|
||||
@@ -0,0 +1,162 @@
|
||||
#! /bin/sh
|
||||
# mkinstalldirs --- make directory hierarchy
|
||||
|
||||
scriptversion=2009-04-28.21; # UTC
|
||||
|
||||
# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
|
||||
# Created: 1993-05-16
|
||||
# Public domain.
|
||||
#
|
||||
# This file is maintained in Automake, please report
|
||||
# bugs to <bug-automake@gnu.org> or send patches to
|
||||
# <automake-patches@gnu.org>.
|
||||
|
||||
nl='
|
||||
'
|
||||
IFS=" "" $nl"
|
||||
errstatus=0
|
||||
dirmode=
|
||||
|
||||
usage="\
|
||||
Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
|
||||
|
||||
Create each directory DIR (with mode MODE, if specified), including all
|
||||
leading file name components.
|
||||
|
||||
Report bugs to <bug-automake@gnu.org>."
|
||||
|
||||
# process command line arguments
|
||||
while test $# -gt 0 ; do
|
||||
case $1 in
|
||||
-h | --help | --h*) # -h for help
|
||||
echo "$usage"
|
||||
exit $?
|
||||
;;
|
||||
-m) # -m PERM arg
|
||||
shift
|
||||
test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
|
||||
dirmode=$1
|
||||
shift
|
||||
;;
|
||||
--version)
|
||||
echo "$0 $scriptversion"
|
||||
exit $?
|
||||
;;
|
||||
--) # stop option processing
|
||||
shift
|
||||
break
|
||||
;;
|
||||
-*) # unknown option
|
||||
echo "$usage" 1>&2
|
||||
exit 1
|
||||
;;
|
||||
*) # first non-opt arg
|
||||
break
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
for file
|
||||
do
|
||||
if test -d "$file"; then
|
||||
shift
|
||||
else
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
case $# in
|
||||
0) exit 0 ;;
|
||||
esac
|
||||
|
||||
# Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and
|
||||
# mkdir -p a/c at the same time, both will detect that a is missing,
|
||||
# one will create a, then the other will try to create a and die with
|
||||
# a "File exists" error. This is a problem when calling mkinstalldirs
|
||||
# from a parallel make. We use --version in the probe to restrict
|
||||
# ourselves to GNU mkdir, which is thread-safe.
|
||||
case $dirmode in
|
||||
'')
|
||||
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
|
||||
echo "mkdir -p -- $*"
|
||||
exec mkdir -p -- "$@"
|
||||
else
|
||||
# On NextStep and OpenStep, the 'mkdir' command does not
|
||||
# recognize any option. It will interpret all options as
|
||||
# directories to create, and then abort because '.' already
|
||||
# exists.
|
||||
test -d ./-p && rmdir ./-p
|
||||
test -d ./--version && rmdir ./--version
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 &&
|
||||
test ! -d ./--version; then
|
||||
echo "mkdir -m $dirmode -p -- $*"
|
||||
exec mkdir -m "$dirmode" -p -- "$@"
|
||||
else
|
||||
# Clean up after NextStep and OpenStep mkdir.
|
||||
for d in ./-m ./-p ./--version "./$dirmode";
|
||||
do
|
||||
test -d $d && rmdir $d
|
||||
done
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
for file
|
||||
do
|
||||
case $file in
|
||||
/*) pathcomp=/ ;;
|
||||
*) pathcomp= ;;
|
||||
esac
|
||||
oIFS=$IFS
|
||||
IFS=/
|
||||
set fnord $file
|
||||
shift
|
||||
IFS=$oIFS
|
||||
|
||||
for d
|
||||
do
|
||||
test "x$d" = x && continue
|
||||
|
||||
pathcomp=$pathcomp$d
|
||||
case $pathcomp in
|
||||
-*) pathcomp=./$pathcomp ;;
|
||||
esac
|
||||
|
||||
if test ! -d "$pathcomp"; then
|
||||
echo "mkdir $pathcomp"
|
||||
|
||||
mkdir "$pathcomp" || lasterr=$?
|
||||
|
||||
if test ! -d "$pathcomp"; then
|
||||
errstatus=$lasterr
|
||||
else
|
||||
if test ! -z "$dirmode"; then
|
||||
echo "chmod $dirmode $pathcomp"
|
||||
lasterr=
|
||||
chmod "$dirmode" "$pathcomp" || lasterr=$?
|
||||
|
||||
if test ! -z "$lasterr"; then
|
||||
errstatus=$lasterr
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
pathcomp=$pathcomp/
|
||||
done
|
||||
done
|
||||
|
||||
exit $errstatus
|
||||
|
||||
# Local Variables:
|
||||
# mode: shell-script
|
||||
# sh-indentation: 2
|
||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-time-zone: "UTC"
|
||||
# time-stamp-end: "; # UTC"
|
||||
# End:
|
||||
@@ -0,0 +1,41 @@
|
||||
# liblto_plugin.la - a libtool library file
|
||||
# Generated by libtool (GNU libtool 1.3134 2009-11-29) 2.2.7a
|
||||
#
|
||||
# Please DO NOT delete this file!
|
||||
# It is necessary for linking the library.
|
||||
|
||||
# The name that we can dlopen(3).
|
||||
dlname='liblto_plugin.so'
|
||||
|
||||
# Names of this library.
|
||||
library_names='liblto_plugin.so liblto_plugin.so liblto_plugin.so'
|
||||
|
||||
# The name of the static archive.
|
||||
old_library=''
|
||||
|
||||
# Linker flags that can not go in dependency_libs.
|
||||
inherited_linker_flags=' -pthread'
|
||||
|
||||
# Libraries that this one depends upon.
|
||||
dependency_libs=''
|
||||
|
||||
# Names of additional weak libraries provided by this library
|
||||
weak_library_names=''
|
||||
|
||||
# Version information for liblto_plugin.
|
||||
current=0
|
||||
age=0
|
||||
revision=0
|
||||
|
||||
# Is this an already installed library?
|
||||
installed=yes
|
||||
|
||||
# Should we warn about portability when linking against -modules?
|
||||
shouldnotlink=yes
|
||||
|
||||
# Files to dlopen/dlpreopen
|
||||
dlopen=''
|
||||
dlpreopen=''
|
||||
|
||||
# Directory that this library needs to be installed in:
|
||||
libdir='/libexec/gcc/x86_64-unknown-redox/13.2.0'
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user