This is the mail archive of the egcs@egcs.cygnus.com mailing list for the EGCS project. See the EGCS home page for more information.


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

Does libf2c support multilib?


Hi,

When I compile the current egcs on Linux/PPC, I got a failure in
libf2c due to multilib. Since libf2c uses -I../../gcc to find the
the header files in the gcc object directory, it doesn't work
with multilib. Did I do something wrong?

Anyway, I used a kludge to get around it. I am enclosing it here.
Please let me know how I should make libf2c to compile with multilib.

Thanks.

-- 
H.J. Lu (hjl@gnu.org)
---
Wed Mar 31 17:47:05 1999  H.J. Lu  (hjl@gnu.org)

	* configure.in (extra_includes): If "$srcdir" != ., add
	-I../../../gcc when ${enable_multilib} is "yes".

Index: configure.in
===================================================================
RCS file: /local/work/cvs/gnu/egcs/libf2c/configure.in,v
retrieving revision 1.1.1.17
diff -u -r1.1.1.17 configure.in
--- configure.in	1999/03/29 20:49:26	1.1.1.17
+++ configure.in	1999/04/01 01:40:27
@@ -103,7 +103,11 @@
 late_cflags=$CFLAGS
 ##gcc -c  -DIN_GCC -DHAVE_CONFIG_H -I. -I/home/fx/c-e/egcs/gcc -I/home/fx/c-e/egcs/gcc/config -I/home/fx/c-e/egcs/gcc/../include /home/fx/c-e/egcs/gcc/f/proj.c
 if test "$srcdir" != . ; then
-  extra_includes="-I$srcdir/../gcc/f -I../../gcc -I$srcdir/../gcc -I$srcdir/../include -I$srcdir/../gcc/config"
+  if test "${enable_multilib}" = "yes" ; then
+    extra_includes="-I$srcdir/../gcc/f -I../../gcc -I../../../gcc -I$srcdir/../gcc -I$srcdir/../include -I$srcdir/../gcc/config"
+  else
+    extra_includes="-I$srcdir/../gcc/f -I../../gcc -I$srcdir/../gcc -I$srcdir/../include -I$srcdir/../gcc/config"
+  fi
 else
   extra_includes="-I../../gcc/f -I../../gcc -I../../include -I../../gcc/config"
 fi