Browse Source

Patch from Martin Proulx to not do ELFish things when not ELF.

Eric Andersen 22 years ago
parent
commit
83a5601c6c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      libc/misc/internals/Makefile

+ 2 - 0
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 $@