From: Arun Thomas Date: Sat, 11 Aug 2012 15:43:30 +0000 (+0200) Subject: csu: build for ARM X-Git-Tag: v3.2.1~381 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=ed9152a1a3d4b22e21c3e0da3170c9402b269104;p=minix.git csu: build for ARM --- 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