From: Roland McGrath Date: Fri, 28 Sep 2012 21:29:14 +0000 (-0700) Subject: Conditionalize elf/dl-sysdep.c contents on [SHARED]. X-Git-Tag: glibc-2.17~478 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=91363dbbb9e4fe96c9f3ec465852c5e04fd4f68e;p=thirdparty%2Fglibc.git Conditionalize elf/dl-sysdep.c contents on [SHARED]. --- diff --git a/ChangeLog b/ChangeLog index 7108c3c171a..ab2620768e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2012-09-28 Roland McGrath + * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED]. + * Makeconfig (nssobjdir, resolvobjdir): Remove variables. (elfobjdir): Move out of conditionals. diff --git a/elf/dl-sysdep.c b/elf/dl-sysdep.c index 7d2283910e9..fb0849a5439 100644 --- a/elf/dl-sysdep.c +++ b/elf/dl-sysdep.c @@ -1,6 +1,5 @@ /* Operating system support for run-time dynamic linker. Generic Unix version. - Copyright (C) 1995-1998,2000-2010,2012 - Free Software Foundation, Inc. + Copyright (C) 1995-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -17,6 +16,12 @@ License along with the GNU C Library; if not, see . */ +/* We conditionalize the whole of this file rather than simply eliding it + from the static build, because other sysdeps/ versions of this file + might define things needed by a static build. */ + +#ifdef SHARED + #include #include #include @@ -592,3 +597,5 @@ _dl_important_hwcaps (const char *platform, size_t platform_len, size_t *sz, return result; } + +#endif