diff --git a/lib/csu/common_elf/Makefile.inc b/lib/csu/common_elf/Makefile.inc index 6e4144671..3d9c631a2 100644 --- a/lib/csu/common_elf/Makefile.inc +++ b/lib/csu/common_elf/Makefile.inc @@ -6,7 +6,11 @@ ELFSIZE=32 .include "../../Makefile.inc" +.if defined(__MINIX) && ${MACHINE_ARCH} == "arm" +CPPFLAGS+= -DLIBC_SCCS -DPIC -DELFSIZE=${ELFSIZE} +.else CPPFLAGS+= -DLIBC_SCCS -DPIC -DDYNAMIC -DELFSIZE=${ELFSIZE} +.endif CPPFLAGS+= -I${NETBSDSRCDIR}/libexec/ld.elf_so CPPFLAGS+= -I${.CURDIR}/../common_elf CPPFLAGS+= -I${NETBSDSRCDIR}/lib/libc/dlfcn