This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

Patch for configuring/building in ${srcdir} (was: Re: Does it work now with my patch? (was: Re: egcs-980221: build fails for shared libstdc++ on HP-UX 10.20))


On Mon, 2 March 1998, 13:50:37, manfred@s-direktnet.de wrote:

 > On Mon, 02 Mar 1998, 11:44:59, geordie@lucent.com wrote:
 > 
 >  > Manfred Hollstein wrote:
 >  > > During the last week several users reported they  were unable to build
 >  > > shared libraries.  On Thursday  I sent a  patch which I believe should
 >  > > cure this. Is it successfull for you? Jeff, shall I install it?
 >  > > 
 >  > 
 >  > Sorry, Manfred, but when I apply your patch to a virgin
 >  > egcs-980221 source tree, do my 'make a symbolic link tree'
 >  > stunt and then rebuild from scratch on HP-UX 10.20, the
 >  > results are the same.
 > 
 > Weired, thought I tested exactly the same procedure :-?

OK,  I   tested the same  procedure,   but   didn't choose   the  same
configuration :-( My one wasn't multilib'ed. The appended patch should
fix all your build problems now.

ChangeLog in libiberty/:

Tue Mar  3 08:26:10 1998  Manfred Hollstein  <manfred@s-direktnet.de>

	* config.table: Make locating frag files failsafe even for the
	special case if configuring and building in srcdir.

ChangeLog in libio/:

Tue Mar  3 08:26:10 1998  Manfred Hollstein  <manfred@s-direktnet.de>

	* configure.in: Make locating frag files failsafe even for the
	special case if configuring and building in srcdir.

ChangeLog in libstdc++/:

Tue Mar  3 08:26:10 1998  Manfred Hollstein  <manfred@s-direktnet.de>

	* configure.in: Make locating frag files failsafe even for the
	special case if configuring and building in srcdir.

diff -rup -x CVS egcs-980302.orig/libiberty/config.table egcs-980302/libiberty/config.table
--- egcs-980302.orig/libiberty/config.table	Sun Feb  1 02:51:20 1998
+++ egcs-980302/libiberty/config.table	Tue Mar  3 08:29:49 1998
@@ -66,6 +66,14 @@ fi
 echo "# Warning: this fragment is automatically generated" > temp-frag
 
 for frag in ${frags}; do
+  case ${frag} in
+    ../* )
+      if [ ${srcdir} = . ]; then
+	[ -n "${with_target_subdir}" ] && frag=../${frag}
+	[ -n "${with_multisrctop}" ] && frag=${with_multisrctop}${frag}
+      fi
+      ;;
+  esac
   frag=${srcdir}/${xsrcdir}config/$frag
   if [ -f ${frag} ]; then
     echo "Appending ${frag} to xhost-mkfrag"
diff -rup -x CVS egcs-980302.orig/libio/configure.in egcs-980302/libio/configure.in
--- egcs-980302.orig/libio/configure.in	Mon Feb 23 18:03:21 1998
+++ egcs-980302/libio/configure.in	Tue Mar  3 08:30:34 1998
@@ -93,6 +93,14 @@ case "${target}" in
 esac
 
 for frag in ${frags}; do
+  case ${frag} in
+    ../* )
+      if [ ${srcdir} = . ]; then
+	[ -n "${with_target_subdir}" ] && frag=../${frag}
+	[ -n "${with_multisrctop}" ] && frag=${with_multisrctop}${frag}
+      fi
+      ;;
+  esac
   frag=${srcdir}/config/$frag
   if [ -f ${frag} ]; then
     echo "Appending ${frag} to target-mkfrag"
diff -rup -x CVS egcs-980302.orig/libstdc++/configure.in egcs-980302/libstdc++/configure.in
--- egcs-980302.orig/libstdc++/configure.in	Tue Jan 27 23:25:59 1998
+++ egcs-980302/libstdc++/configure.in	Tue Mar  3 08:31:10 1998
@@ -65,6 +65,14 @@ case "${target}" in
 esac
 
 for frag in ${frags}; do
+  case ${frag} in
+    ../* )
+      if [ ${srcdir} = . ]; then
+	[ -n "${with_target_subdir}" ] && frag=../${frag}
+	[ -n "${with_multisrctop}" ] && frag=${with_multisrctop}${frag}
+      fi
+      ;;
+  esac
   frag=${srcdir}/config/$frag
   if [ -f ${frag} ]; then
     echo "Appending ${frag} to target-mkfrag"


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