patches/libfloat/990616/100-libfloat_990616-3-lib-versioning.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue May 08 17:48:32 2007 +0000 (2007-05-08)
changeset 78 c3868084d81a
permissions -rw-r--r--
Huge fixes to glibc build, so that we can build at least (and at last):
- use ports addon even when installing headers,
- use optimisation (-O) when installing headers, to avoid unnecessary warnings (thanks Robert P. J. DAY for pointing this out!),
- lowest kernel version to use is only X.Y.Z, not X.Y.Z.T,
- a bit of preparations for NPTL (RSN I hope),
- fix fixing the linker scripts (changing the backup file is kind of useless and stupid);

Shut uClibc finish step: there really is nothing to do;

Add a patch for glibc-2.3.6 weak aliases handling on some archs (ARM and ALPHA at least);

Did not catch the make errors: fixed the pattern matching in scripts/functions;

Introduce a new log level, ALL:
- send components' build messages there,
- DEBUG log level is destined only for crosstool-NG debug messages,
- migrate sub-actions to use appropriate log levels;

Update the armeb-unknown-linux-gnu sample:
- it builds!
- uses gcc-4.0.4 and glibc-2.3.6,
- updated to latest config options set.
     1 This patch comes from the Debian archive:
     2   ftp://ftp.de.debian.org/debian/pool/main/libf/libfloat/libfloat_990616-3.diff.gz
     3 
     4 It was stripped of all Debian-related hunks.
     5 Kept is the library versioning.
     6 
     7 --- libfloat-990616.orig/Makefile
     8 +++ libfloat-990616/Makefile
     9 @@ -4,15 +4,15 @@
    10  #CC=gcc -g -O2 -freg-struct-return -D__LIBFLOAT__
    11  AR=ar
    12  
    13 -all: libfloat.a libfloat.so
    14 +all: libfloat.a libfloat.so.1
    15  
    16  libfloat.a: softfloat.o fplib_glue.o
    17  	rm -f libfloat.a
    18  	$(AR) cq libfloat.a softfloat.o fplib_glue.o
    19  
    20 -libfloat.so: softfloat.os fplib_glue.os
    21 -	rm -f libfloat.so
    22 -	gcc -shared softfloat.os fplib_glue.os -o libfloat.so
    23 +libfloat.so.1: softfloat.os fplib_glue.os
    24 +	rm -f libfloat.so.1
    25 +	gcc -shared -Wl,-soname,libfloat.so.1 softfloat.os fplib_glue.os -o libfloat.so.1
    26  
    27  softfloat.o: softfloat/bits64/softfloat.c
    28  	$(CC) -c -o softfloat.o -Isoftfloat/bits64/ARM-gcc softfloat/bits64/softfloat.c
    29 @@ -26,14 +26,14 @@
    30  fplib_glue.os: fplib_glue.S
    31  	$(CC) -fpic -c -o fplib_glue.os fplib_glue.S
    32  
    33 -install: libfloat.a libfloat.so
    34 -	cp -a libfloat.a /usr/lib
    35 -	cp -a libfloat.so /usr/lib
    36 -	ldconfig
    37 +install: libfloat.a libfloat.so.1
    38 +	cp -a libfloat.a $(DESTDIR)/usr/lib
    39 +	cp -a libfloat.so.1 $(DESTDIR)/usr/lib
    40 +	cd $(DESTDIR)/usr/lib; ln -s libfloat.so.1 libfloat.so
    41  
    42  clean: 
    43  	rm -f *.o
    44  	rm -f *.os
    45  	rm -f libfloat.a
    46 -	rm -f libfloat.so
    47 +	rm -f libfloat.so.1
    48  	rm -f *~