From ed9152a1a3d4b22e21c3e0da3170c9402b269104 Mon Sep 17 00:00:00 2001 From: Arun Thomas Date: Sat, 11 Aug 2012 17:43:30 +0200 Subject: [PATCH] csu: build for ARM --- lib/csu/common_elf/Makefile.inc | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.44.0