1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

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 d96d2995c1
("Revert "Linux: Consolidate auxiliary vector parsing").
This commit is contained in:
Florian Weimer
2022-02-11 19:03:04 +01:00
parent d96d2995c1
commit 098c795e85

View File

@ -18,7 +18,6 @@
#include <_itoa.h>
#include <assert.h>
#include <dl-auxv.h>
#include <dl-hwcap-check.h>
#include <dl-osinfo.h>
#include <dl-procinfo.h>
@ -46,6 +45,8 @@
#include <dl-machine.h>
#ifdef SHARED
# include <dl-auxv.h>
extern char **_environ attribute_hidden;
extern char _end[] attribute_hidden;