OSDN Git Service

Patch from Martin Proulx to not do ELFish things when not ELF.
authorEric Andersen <andersen@codepoet.org>
Wed, 17 Apr 2002 11:32:37 +0000 (11:32 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 17 Apr 2002 11:32:37 +0000 (11:32 -0000)
libc/misc/internals/Makefile

index c35c636..e9b4e55 100644 (file)
@@ -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 $@