Build for sparc-sun-solaris2.7
This commit is contained in:
committed by
Tom G. Christensen
parent
de74344481
commit
be903f70e5
12
gcc/build.sh
12
gcc/build.sh
@@ -42,6 +42,11 @@ export CC=/export/home/tgc/gnat/bin/gcc
|
||||
export GNATROOT=/export/home/tgc/gnat
|
||||
export PATH=/export/home/tgc/gnat/bin:$PATH
|
||||
|
||||
# Conditionals for pkgdef
|
||||
[ -n "$(isainfo | grep sparcv9)" ] && v9libs=1
|
||||
[ "$_os" = "sunos56" ] && sol26=1
|
||||
[ "$_os" = "sunos57" ] && sol27=1
|
||||
|
||||
reg prep
|
||||
prep()
|
||||
{
|
||||
@@ -79,6 +84,13 @@ install()
|
||||
${__tar} -cf - libgcc_s.so.1 libstdc++.so.6* libg2c.so.0* libobjc.so.1* |
|
||||
(cd ${stagedir}${lprefix}/${_libdir}; ${__tar} -xvBpf -)
|
||||
|
||||
if [ "x$v9libs" != "x" ]; then
|
||||
${__mkdir} -p ${stagedir}${lprefix}/${_libdir}/sparcv9
|
||||
setdir ${stagedir}${prefix}/${_libdir}/sparcv9
|
||||
${__tar} -cf - libgcc_s.so.1 libstdc++.so.6* libg2c.so.0* libobjc.so.1* |
|
||||
(cd ${stagedir}${lprefix}/${_libdir}/sparcv9; ${__tar} -xvBpf -)
|
||||
fi
|
||||
|
||||
# Place share/docs in the regular location
|
||||
prefix=$topinstalldir
|
||||
doc COPYING* BUGS FAQ MAINTAINERS NEWS
|
||||
|
||||
Reference in New Issue
Block a user