diff options
Diffstat (limited to 'math/ldouble')
-rw-r--r-- | math/ldouble/files/patch-makefile | 91 |
1 files changed, 9 insertions, 82 deletions
diff --git a/math/ldouble/files/patch-makefile b/math/ldouble/files/patch-makefile index f8d3072b883b..fe70bb3c8257 100644 --- a/math/ldouble/files/patch-makefile +++ b/math/ldouble/files/patch-makefile @@ -1,19 +1,18 @@ ---- makefile.orig Sun May 4 10:30:12 2003 -+++ makefile Tue Nov 2 11:13:37 2004 -@@ -2,30 +2,32 @@ +--- makefile.orig Tue Nov 23 00:56:12 2004 ++++ makefile Tue Nov 23 00:58:32 2004 +@@ -2,21 +2,26 @@ # Be sure to check the size of a pointer, LARGEMEM, in lcalc.h; # the size of long double, XPD, in mconf.h; and the type of # computer and endianness of the numbers in mconf.h. -CC= gcc --#CC = /a/gnu/linux/gcc/xgcc -B/a/gnu/linux/gcc/ -I/a/gnu/linux/gcc/include +CC= %%CC%% -+#CC = /a/gnu/linux//usr/local/libexec/ccache/cc/x/usr/local/libexec/ccache/cc -B/a/gnu/linux/gcc/ -I/a/gnu/linux/gcc/include + #CC = /a/gnu/linux/gcc/xgcc -B/a/gnu/linux/gcc/ -I/a/gnu/linux/gcc/include #CFLAGS= -O0 -fno-builtin -CFLAGS= -O -Wall -Wuninitialized -fno-builtin +CFLAGS= %%CFLAGS%% -Wuninitialized -fno-builtin -fPIC LIBS= -+SHARED_LIB= libml.so -+SHARED_LIB_VER= $(SHARED_LIB).0 ++SHARED_LIB= libml.so ++SHARED_LIB_VER= $(SHARED_LIB).0 OBJS= acoshl.o asinhl.o asinl.o atanhl.o atanl.o bdtrl.o btdtrl.o cbrtl.o \ chdtrl.o coshl.o ellpel.o ellpkl.o elliel.o ellikl.o ellpjl.o \ exp10l.o exp2l.o expl.o expx2l.o fdtrl.o gammal.o gdtrl.o igamil.o igaml.o \ @@ -25,82 +24,10 @@ # cmplxl.o clogl.o -all: mtstl lparanoi lcalc fltestl nantst testvect monotl libml.a -+all: mtstl lparanoi lcalc fltestl nantst testvect monotl libml.a $(SHARED_LIB_VER) - --mtstl: libml.a mtstl.o $(OBJS) -- $(CC) $(CFLAGS) -o mtstl mtstl.o libml.a $(LIBS) -+mtstl: $(SHARED_LIB_VER) mtstl.o $(OBJS) -+ $(CC) $(CFLAGS) -o mtstl mtstl.o $(SHARED_LIB_VER) $(LIBS) - # aout2exe mtstl - - mtstl.o: mtstl.c - --lparanoi: libml.a lparanoi.o setprec.o ieee.o econst.o $(OBJS) -- $(CC) $(CFLAGS) -o lparanoi lparanoi.o setprec.o ieee.o econst.o libml.a $(LIBS) -+lparanoi: $(SHARED_LIB_VER) lparanoi.o setprec.o ieee.o econst.o $(OBJS) -+ $(CC) $(CFLAGS) -o lparanoi lparanoi.o setprec.o ieee.o econst.o $(SHARED_LIB_VER) $(LIBS) - # aout2exe lparanoi - - lparanoi.o: lparanoi.c -@@ -33,8 +35,8 @@ - - econst.o: econst.c ehead.h - --lcalc: libml.a lcalc.o ieee.o econst.o $(OBJS) -- $(CC) $(CFLAGS) -o lcalc lcalc.o ieee.o econst.o libml.a $(LIBS) -+lcalc: $(SHARED_LIB_VER) lcalc.o ieee.o econst.o $(OBJS) -+ $(CC) $(CFLAGS) -o lcalc lcalc.o ieee.o econst.o $(SHARED_LIB_VER) $(LIBS) - - lcalc.o: lcalc.c lcalc.h ehead.h - -@@ -46,6 +48,10 @@ - ranlib libml.a - # ar -rv libml.a *.o - ++all: libml.a $(SHARED_LIB_VER) + +$(SHARED_LIB_VER): $(OBJS) mconf.h + $(CC) $(CFLAGS) -shared -Wl,-soname,$(SHARED_LIB_VER) -o $(SHARED_LIB_VER) $(OBJS) -+ - # Use assembly language sqrt and floor if available. - # sqrtl.c does not give strictly rounded results. - # The floor.c routines are slow. -@@ -82,29 +88,29 @@ - #sqrtl.o: sqrtl.mot - # as -o sqrtl.o sqrtl.mot - --fltestl: fltestl.c libml.a -- $(CC) $(CFLAGS) -o fltestl fltestl.c libml.a -+fltestl: fltestl.c $(SHARED_LIB_VER) -+ $(CC) $(CFLAGS) -o fltestl fltestl.c $(SHARED_LIB_VER) - - fltestl.o: fltestl.c - --flrtstl: flrtstl.c libml.a -- $(CC) $(CFLAGS) -o flrtstl flrtstl.c libml.a -+flrtstl: flrtstl.c $(SHARED_LIB_VER) -+ $(CC) $(CFLAGS) -o flrtstl flrtstl.c $(SHARED_LIB_VER) - - flrtstl.o: flrtstl.c - --nantst: nantst.c libml.a -- $(CC) $(CFLAGS) -o nantst nantst.c libml.a -+nantst: nantst.c $(SHARED_LIB_VER) -+ $(CC) $(CFLAGS) -o nantst nantst.c $(SHARED_LIB_VER) - - nantst.o: nantst.c - --testvect: testvect.o libml.a -- $(CC) $(CFLAGS) -o testvect testvect.o libml.a -+testvect: testvect.o $(SHARED_LIB_VER) -+ $(CC) $(CFLAGS) -o testvect testvect.o $(SHARED_LIB_VER) - - testvect.o: testvect.c - $(CC) -g -c -o testvect.o testvect.c - --monotl: monotl.o libml.a -- $(CC) $(CFLAGS) -o monotl monotl.o libml.a -+monotl: monotl.o $(SHARED_LIB_VER) -+ $(CC) $(CFLAGS) -o monotl monotl.o $(SHARED_LIB_VER) - monotl.o: monotl.c - $(CC) -g -c -o monotl.o monotl.c + mtstl: libml.a mtstl.o $(OBJS) + $(CC) $(CFLAGS) -o mtstl mtstl.o libml.a $(LIBS) |