Index: f/ChangeLog
authorGeoffrey Keating <geoffk@redhat.com>
Tue, 20 Nov 2001 04:03:52 +0000 (04:03 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Tue, 20 Nov 2001 04:03:52 +0000 (04:03 +0000)
* g77spec.c (lang_specific_driver) [ENABLE_SHARED_LIBGCC]: Add
libgcc_s.so if libf2c is used.
* Make-lang.in (g77spec.o): Use DRIVER_DEFINES.

Index: testsuite/ChangeLog

* lib/g77.exp: Don't specify --rpath-link.

From-SVN: r47195

gcc/f/ChangeLog
gcc/f/Make-lang.in
gcc/f/g77spec.c
gcc/testsuite/ChangeLog
gcc/testsuite/lib/g77.exp

index 065329396c1a60324cdd784096176e7417854724..f09a115a784573bd645e4bac4b84344c69dab7f1 100644 (file)
@@ -1,3 +1,9 @@
+2001-11-19  Geoffrey Keating  <geoffk@redhat.com>
+
+       * g77spec.c (lang_specific_driver) [ENABLE_SHARED_LIBGCC]: Add
+       libgcc_s.so if libf2c is used.
+       * Make-lang.in (g77spec.o): Use DRIVER_DEFINES.
+
 2001-11-19  Toon Moene <toon@moene.indiv.nluug.nl>
 
        * .cvsignore: Ignore g77.1
index e3f40849e21ea3ccca0212a097e872e2a6aa31b5..db74f28d2f618ce6b13363d03a5de8200b1b0cc8 100644 (file)
@@ -67,8 +67,10 @@ F77 f77: f771$(exeext)
 
 g77spec.o: $(srcdir)/f/g77spec.c $(srcdir)/f/version.h $(SYSTEM_H) $(GCC_H) \
        $(CONFIG_H)
-       $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
-               $(srcdir)/f/g77spec.c $(OUTPUT_OPTION)
+       (SHLIB_LINK='$(SHLIB_LINK)' \
+       SHLIB_MULTILIB='$(SHLIB_MULTILIB)'; \
+       $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(DRIVER_DEFINES) \
+               $(INCLUDES) $(srcdir)/f/g77spec.c)
 
 g77version.o: $(srcdir)/f/version.c
        $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -o g77version.o \
index 9b826209663952b3a2d5227df2f81271f1527a11..9c1faef87a1705c61a64b3da3c81384609db89bc 100644 (file)
@@ -523,6 +523,23 @@ or type the command `info -f g77 Copying'.\n\
        }
     }
 
+#ifdef ENABLE_SHARED_LIBGCC
+  if (library)
+    {
+      int i;
+
+      for (i = 1; i < g77_newargc; i++)
+       if (g77_newargv[i][0] == '-')
+         if (strcmp (g77_newargv[i], "-static-libgcc") == 0
+             || strcmp (g77_newargv[i], "-static") == 0)
+           break;
+    
+      if (i == g77_newargc)
+       append_arg ("-shared-libgcc");
+    }
+  
+#endif
+
   if (verbose
       && g77_newargv != g77_xargv)
     {
index 447e36f82a441f44d6b1c00f0cf13472018fa4a7..750e1aa55009c083d0193f9842810bfffb8ca1a4 100644 (file)
@@ -1,5 +1,7 @@
 2001-11-19  Geoffrey Keating  <geoffk@redhat.com>
 
+       * lib/g77.exp: Don't specify --rpath-link.
+
        * gcc.dg/cpp/cpp.exp: For testing on a remote host, copy
        across all the headers.
        * gcc.dg/format/format.exp: For testing on a remote host,
index 0dd403dd202910d30dc130a9bbd8ae7afd89aac9..2a08f15fef6b471e2adc68f701a9123f7eb481fb 100644 (file)
@@ -84,7 +84,6 @@ proc g77_link_flags { paths } {
       if [file exists "${gccpath}/libf2c/.libs/libg2c.a"] {
           append flags "-L${gccpath}/libf2c/.libs "
          if [file exists "${gccpath}/libf2c/.libs/libg2c.so"] {
-             append flags "-Wl,--rpath-link,${rootme} "
              append ld_library_path ":${gccpath}/libf2c/.libs"
          }
       }