summaryrefslogtreecommitdiff
path: root/libc/misc/internals/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-04-17 11:32:37 +0000
committerEric Andersen <andersen@codepoet.org>2002-04-17 11:32:37 +0000
commit83a5601c6c746c3a296dfe3b017770c0942d60b4 (patch)
treec7d93941472170ec75ea6e9e7b9dcc16f6daa582 /libc/misc/internals/Makefile
parentac582c1ec7bc393c8f14f6d471789a1a82850890 (diff)
Patch from Martin Proulx to not do ELFish things when not ELF.
Diffstat (limited to 'libc/misc/internals/Makefile')
-rw-r--r--libc/misc/internals/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/misc/internals/Makefile b/libc/misc/internals/Makefile
index c35c636ef..e9b4e55b8 100644
--- a/libc/misc/internals/Makefile
+++ b/libc/misc/internals/Makefile
@@ -38,8 +38,10 @@ ar-target: $(OBJS)
interp.c: Makefile
echo "/* Force shared libraries to know about the correct library loader */" > interp.c
+ echo "#ifdef HAVE_ELF" >> interp.c
echo "const char __dl_ldso__[] __attribute__ ((section " \
"(\".interp\"))) =\""$(DYNAMIC_LINKER)"\";" >> interp.c
+ echo "#endif" >> interp.c
$(COBJS): %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@