]> Zhao Yanbai Git Server - minix.git/commitdiff
csu: build for ARM
authorArun Thomas <arun@minix3.org>
Sat, 11 Aug 2012 15:43:30 +0000 (17:43 +0200)
committerArun Thomas <arun@minix3.org>
Sun, 12 Aug 2012 21:30:54 +0000 (23:30 +0200)
lib/csu/common_elf/Makefile.inc

index 6e4144671e3951b1df2a3f5861b92fbb893a4654..3d9c631a21a630a8baeef01d703b6306960b459e 100644 (file)
@@ -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