pa.h (PARSE_LDD_OUTPUT): Handle dynamic libraries that are loaded "statically".

* pa/pa.h (PARSE_LDD_OUTPUT): Handle dynamic libraries that are
        loaded "statically".

From-SVN: r12329
This commit is contained in:
Jeff Law 1996-06-24 23:20:55 -06:00
parent ea3a7ffa91
commit 1b48da0d2d

View 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)