]> git.saurik.com Git - apple/libc.git/blame - make_libldbl128
Libc-391.4.2.tar.gz
[apple/libc.git] / make_libldbl128
CommitLineData
3d9156a7
A
1#! /bin/sh -x
2
3libc_ldbl128=$1
4suffix=$2
5destdir=$3
6usr_local_lib_system=$4
7
8libldbl128=libldbl128$suffix.a
9objdir=`dirname $libc_ldbl128`
10tmpdir=$objdir/tmp
11libm=libm$suffix.a
12libgcc=libgcc
13libgccppc=$libgcc-ppc.a
14libm128='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
16mkdir -p $tmpdir
17cd $tmpdir
18rm -f *
19lipo -thin ppc -output $libm $usr_local_lib_system/$libm
20ar x $libm $libm128
21rm -f $libm
22ar x $libc_ldbl128
23rm -f __.*
24mkdir -p $destdir
25ar cq $destdir/$libldbl128 `lorder * | tsort -q`
26ranlib $destdir/$libldbl128
27if [ -z "$suffix" ]; then
28 lib=`gcc-3.5 -arch ppc -print-file-name=$libgcc.a`
29 cp $lib $destdir/$libgccppc
30fi