aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
Diffstat (limited to 'elf')
-rw-r--r--elf/dlopenold.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/elf/dlopenold.c b/elf/dlopenold.c
index a9659ae3ec..49fce7a545 100644
--- a/elf/dlopenold.c
+++ b/elf/dlopenold.c
@@ -17,7 +17,9 @@
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#ifdef PIC
+/* This file is for compatibility with glibc 2.0. Compile it only if
+ versioning is used. */
+#if defined PIC && DO_VERSIONING
#include <dlfcn.h>
#include <stddef.h>