summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPino Toscano <toscano.pino@tiscali.it>2012-11-16 15:04:29 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2012-11-24 16:28:01 +0100
commit2c5f67c9b8b87ec545a57f7dc954f92b1a7113db (patch)
tree51f5ab6528b2b768a6e12fcc6aa6691877925f34
parente79751ffaff3d489498b1c17e3d2aa890fcef6bc (diff)
Set elf=yes if not defined already
glibc 2.16 dropped support for any binary format other than ELF, and the ELF variable has been removed too; this causes a build failure when built as glibc addon with glibc >= 2.16, since it would not link to ld.so. Defining ELF to 'yes' if not defined allows to retain compatibility with older glibc versions. * Makefile [$(..) != ''] [$(elf) = ''] (elf): Define to 'yes'.
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index fdfe3ae..c1d8d33 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,10 @@ IN_GLIBC = no
else
# glibc build
IN_GLIBC = yes
+# set elf=yes, to retain compatibility with glibc < 2.16
+ifeq ($(elf),)
+elf = yes
+endif
endif
ifeq ($(IN_GLIBC),no)