Linux: Include <dl-auxv.h> in dl-sysdep.c only for SHARED
authorFlorian Weimer <fweimer@redhat.com>
Fri, 11 Feb 2022 18:03:04 +0000 (19:03 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 11 Feb 2022 18:50:58 +0000 (19:50 +0100)
commit098c795e85fbd05c5ef59c2d0ce59529331bea27
tree9b5326969cd71e6d62b8b0c1eeedeea1cb093eae
parentd96d2995c1121d3310102afda2deb1f35761b5e6
Linux: Include <dl-auxv.h> in dl-sysdep.c only for SHARED

Otherwise, <dl-auxv.h> on POWER ends up being included twice,
once in dl-sysdep.c, once in dl-support.c.  That leads to a linker
failure due to multiple definitions of _dl_cache_line_size.

Fixes commit d96d2995c1121d3310102afda2deb1f35761b5e6
("Revert "Linux: Consolidate auxiliary vector parsing").
sysdeps/unix/sysv/linux/dl-sysdep.c