aboutsummaryrefslogtreecommitdiff
path: root/gcc/just-fixinc
blob: 285674501dfade92c953cbc1eb746ed710df29c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
# This script exists for use after installing
# the Solaris binaries from the FSF CD-ROM.
# Use it *after* copying the directory of binaries
# to the proper installed location.
# It runs fixinc.svr4 to correct bugs in the Solaris header files.

# The corrected header files go in the GCC installation directory
# so that only GCC sees them.
# This script does not modify the original header files in /usr/include.
# It only modifies copies in the GCC installation directory.

installed=/opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.4.2
cd $installed/include
rmdir tmpfoo > /dev/null 2>&1
mkdir tmpfoo
mv va-sparc.h varargs.h stdarg.h stddef.h limits.h float.h proto.h tmpfoo
$installed/fixinc.svr4 $installed/include /usr/include $installed
mv tmpfoo/* .
rmdir tmpfoo