A shared library patch for libg++ 2.8.0

H.J. Lu hjl@lucon.org
Fri Jan 16 20:09:00 GMT 1998


Hi,

There is a bug in configure.in in libg++ 2.8.0, which prevents
--enable-shared from working on many platforms if the build
directory is different from the source directory. This patch
should fix it.

BTW, the same bug exists in egcs 980115. But you won't see it
on HPPA, x86, Sparc64, PPC and alpha.

Sorry for that.


-- 
H.J. Lu (hjl@gnu.org)
----
Fri Jan 16 08:00:02 19978 H.J. Lu  (hjl@gnu.org)

	* configure.in: Check makefile fragments in the source
	directory.

--- libg++-2.8.0/configure.in	Wed Jan 14 08:43:49 1998
+++ libg++-2.8.1/configure.in	Fri Jan 16 15:01:09 1998
@@ -275,7 +275,7 @@
       host_makefile_frag="${host_makefile_frag} config/mh-elfalphapic"
       ;;
     *)
-      if test -f config/mh-${host_cpu}pic; then
+      if test -f ${srcdir}/config/mh-${host_cpu}pic; then
         host_makefile_frag="${host_makefile_frag} config/mh-${host_cpu}pic"
       fi
       ;;
@@ -874,7 +874,7 @@
       target_makefile_frag="${target_makefile_frag} config/mt-elfalphapic"
       ;;
     *)
-      if test -f config/mt-${target_cpu}pic; then
+      if test -f ${srcdir}/config/mt-${target_cpu}pic; then
         target_makefile_frag="${target_makefile_frag} config/mt-${target_cpu}pic"
       fi
       ;;



More information about the Gcc mailing list