From mboxrd@z Thu Jan 1 00:00:00 1970 From: hjl@lucon.org (H.J. Lu) To: egcs@cygnus.com Cc: gcc2@cygnus.com, libc-linux@gnu.org (GNU C Library) Subject: A new libg++ addon is released. Date: Tue, 17 Feb 1998 14:38:00 -0000 Message-id: X-SW-Source: 1998-02/msg00836.html Hi, Here is a new libg++ addon. The change is very small. There are no source code changes. -- H.J. Lu (hjl@gnu.org) --- This is a libg++ addon for libstdc++ 2.8.x and egcs. It is needed only if your applications depend on libg++ and the dependency on libg++ cannot be removed easily. The standalone libg++ is not longer needed. The libg++ and librx have been tested with 1. egcs 980205 on linux/x86/libc 5, linux/x86/glibc 2.0.5c, linux/x86/glibc 2.1 and linux/alpha/glibc 2.0.6. 2. gcc 2.8.1 980209 and libstdc++ 2.8.0 on linux/x86/libc 5. It is available at ftp://ftp.yggdrasil.com/private/hjl/libg++-2.8.1-980207.tar.gz Patch for libg++ 2.8.1 980201 is also available at ftp://ftp.yggdrasil.com/private/hjl/libg++-2.8.1-980201-980207.diff.gz Just put libg++ and librx under the egcs or libstdc++ source directory, i.e., # cd src/egcs # gzip -dc xxxxxx/libg++-2.8.1-980207-tar.gz | tar xf - Or # cd src/libstdc++-2.8.x # gzip -dc xxxxxx/libg++-2.8.1-980207-tar.gz | tar xf - Potential problems with libstdc++ 2.8.x: 1. Since gcc 2.8.1 is installed under /usr on Linux/GNU, libstdc++ should be modified to reflect it. Otherwise incorrect header files and libraries may be used. A patch is available upon request. 2. libstdc++ 2.8.0 may not support glibc 2.1. "make check" may fail on systems using glibc 2.1. A patch is available at ftp://ftp.yggdrasil.com/private/hjl/egcs-971201.io.diff.gz 3. When --disable-multilib is used to configure libstdc++ 2.8.0, "make check" may fail in libio due to a bug in dejagnu which cannot find the build directory for libio. You can either fix dejagnu or don't use dejagnu in libstdc++ 2.8.0. A patch for libstdc++ 2.8.0 is also available upon request. You also need to check configure.in and configure to see if the patch enclosed here is already applied. If not, please do # patch -p0 < README.libg++ Then you can configure/build/check/install egcs normally. Now it will include libg++. H.J. Lu hjl@gnu.org 02/07/1998 --- Sun Sep 7 14:27:56 1997 H.J. Lu (hjl@gnu.ai.mit.edu) * configure.in (alpha*-*-linux*): Treat alpha*-*-linux* as alpha*-*-linux* and alpha*-*-*. Mon Aug 25 17:31:49 1997 H.J. Lu (hjl@gnu.ai.mit.edu) * configure: When making link, also check the current directory. The configure scripts may create one. Index: configure.in =================================================================== RCS file: /home/work/cvs/gnu/egcs/configure.in,v retrieving revision 1.1.1.4 diff -u -r1.1.1.4 configure.in --- configure.in 1997/09/17 20:09:19 1.1.1.4 +++ configure.in 1997/10/23 00:01:53 @@ -416,6 +507,12 @@ alpha*-*-*vms*) noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss" ;; + alpha*-*-linux*) + # newlib is not 64 bit ready + noconfigdirs="$noconfigdirs target-newlib target-libgloss" + # linux has rx in libc + skipdirs="$skipdirs target-librx" + ;; alpha*-*-*) # newlib is not 64 bit ready noconfigdirs="$noconfigdirs target-newlib target-libgloss" Index: configure =================================================================== RCS file: /home/work/cvs/gnu/egcs/configure,v retrieving revision 1.1.1.2 diff -u -r1.1.1.2 configure --- configure 1997/09/17 20:09:18 1.1.1.2 +++ configure 1997/09/17 20:22:21 @@ -992,27 +1006,34 @@ set ${links}; link=$1; shift; links=$* if [ ! -r ${srcdir}/${file} ] ; then + if [ ! -r ${file} ] ; then + echo '***' "${progname}: cannot create a link \"${link}\"," 1>&2 echo '***' "since the file \"${srcdir}/${file}\" does not exist." 1>&2 exit 1 + else + srcfile=${file} + fi + else + srcfile=${srcdir}/${file} fi ${remove} -f ${link} # Make a symlink if possible, otherwise try a hard link - if ${symbolic_link} ${srcdir}/${file} ${link} >/dev/null 2>&1 ; then + if ${symbolic_link} ${srcfile} ${link} >/dev/null 2>&1 ; then true else # We need to re-remove the file because Lynx leaves a # very strange directory there when it fails an NFS symlink. ${remove} -r -f ${link} - ${hard_link} ${srcdir}/${file} ${link} + ${hard_link} ${srcfile} ${link} fi if [ ! -r ${link} ] ; then - echo '***' "${progname}: unable to link \"${link}\" to \"${srcdir}/${file}\"." 1>&2 + echo '***' "${progname}: unable to link \"${link}\" to \"${srcfile}\"." 1>&2 exit 1 fi - echo "Linked \"${link}\" to \"${srcdir}/${file}\"." + echo "Linked \"${link}\" to \"${srcfile}\"." done # Create a .gdbinit file which runs the one in srcdir