pa.h (PARSE_LDD_OUTPUT): Handle dynamic libraries that are loaded "statically".
authorJeff Law <law@gcc.gnu.org>
Tue, 25 Jun 1996 05:20:55 +0000 (23:20 -0600)
committerJeff Law <law@gcc.gnu.org>
Tue, 25 Jun 1996 05:20:55 +0000 (23:20 -0600)
        * pa/pa.h (PARSE_LDD_OUTPUT): Handle dynamic libraries that are
        loaded "statically".

From-SVN: r12329

gcc/config/pa/pa.h

index 4ccb4871a6282b518a95be2a9a60e781214799a6..019fc192eb462c4c10f0319be80613182a7d98fc 100644 (file)
@@ -266,7 +266,8 @@ extern int target_flags;
 /* HPUX has a program 'chatr' to list the dependencies of dynamically
    linked executables and shared libraries.  */
 #define LDD_SUFFIX "chatr"
-/* look for lines like "dynamic   /usr/lib/X11R5/libX11.sl".  */
+/* Look for lines like "dynamic   /usr/lib/X11R5/libX11.sl"
+   or "static    /usr/lib/X11R5/libX11.sl".  */
 #define PARSE_LDD_OUTPUT(PTR)                                  \
 do {                                                           \
   while (*PTR == ' ') PTR++;                                   \
@@ -275,6 +276,11 @@ do {                                                               \
       PTR += sizeof ("dynamic") - 1;                           \
       while (*p == ' ') PTR++;                                 \
     }                                                          \
+  else if (strncmp (PTR, "static", sizeof ("static") - 1) == 0)        \
+    {                                                          \
+      PTR += sizeof ("static") - 1;                            \
+      while (*p == ' ') PTR++;                                 \
+    }                                                          \
   else                                                         \
     PTR = 0;                                                   \
 } while (0)