mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-18 16:15:00 +08:00
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:
parent
ea3a7ffa91
commit
1b48da0d2d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user