This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

-static and others


Hi,

I think we may be able to find a partial work around for -static with
glibc 2.0 and 2.1.

1. We make a libcompat-2.0.a which has the old libio symbols with
version, like fopen@GLIBC_2.0.
2. I have a patch for objcopy which is supposed to be able to rename
the symbols in the .o files. We run objcopy on the static library
compiled against glibc 2.0. For those symbols whose ABIs changed in
2.1, we append @GLIBC_2.0 at the end.
3. We add -lcompat-2.0 when we use -static.

It may not solve everything, I hope it will work for most cases.

Cristian, I am also enclosing a patch for /sbin/ifup in Redhat 5.2. We
don't need to add the network route for linux 2.1.

Thanks.

-- 
H.J. Lu (hjl@gnu.org)
---
--- sbin/ifup.orig	Sun Dec  6 08:17:04 1998
+++ sbin/ifup	Sun Dec 20 13:16:49 1998
@@ -130,7 +130,11 @@
     ifconfig ${DEVICE} ${MACADDR:+hw ether $MACADDR} ${IPADDR} \
       netmask ${NETMASK} broadcast ${BROADCAST} ${MEDIA:+media $MEDIA}
     if [ "$ISALIAS" = no ] ; then
-	route add -net ${NETWORK} netmask ${NETMASK} ${DEVICE}
+	case `uname -r` in
+	0.*|1.*|2.0.*)
+	  route add -net ${NETWORK} netmask ${NETMASK} ${DEVICE}
+	  ;;
+	esac
     else
 	route add -host ${IPADDR} ${DEVICE}
     fi


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]