]>
Commit | Line | Data |
---|---|---|
3d9156a7 A |
1 | #! /bin/sh -x |
2 | ||
3 | libc_ldbl128=$1 | |
4 | suffix=$2 | |
5 | destdir=$3 | |
6 | usr_local_lib_system=$4 | |
7 | ||
8 | libldbl128=libldbl128$suffix.a | |
9 | objdir=`dirname $libc_ldbl128` | |
10 | tmpdir=$objdir/tmp | |
11 | libm=libm$suffix.a | |
12 | libgcc=libgcc | |
13 | libgccppc=$libgcc-ppc.a | |
14 | libm128='ArcHyperbolicDD.o ArcSinCosDD.o ArcTanDD.o AuxiliaryDD.o ErfDD.o ExpDD.o ExpTableLD.o GammaDD.o HyperbolicDD.o LogDD.o LogTableLD.o PowerDD.o SinCosTanDD.o SqrtDD.o complex.o complexld64.o d3ops.o floating.o fpmacros.o ld64.o' | |
15 | ||
16 | mkdir -p $tmpdir | |
17 | cd $tmpdir | |
18 | rm -f * | |
19 | lipo -thin ppc -output $libm $usr_local_lib_system/$libm | |
20 | ar x $libm $libm128 | |
21 | rm -f $libm | |
22 | ar x $libc_ldbl128 | |
23 | rm -f __.* | |
24 | mkdir -p $destdir | |
25 | ar cq $destdir/$libldbl128 `lorder * | tsort -q` | |
26 | ranlib $destdir/$libldbl128 | |
27 | if [ -z "$suffix" ]; then | |
28 | lib=`gcc-3.5 -arch ppc -print-file-name=$libgcc.a` | |
29 | cp $lib $destdir/$libgccppc | |
30 | fi |