summaryrefslogtreecommitdiff
path: root/lib/csu/arm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csu/arm/Makefile')
-rw-r--r--lib/csu/arm/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/csu/arm/Makefile b/lib/csu/arm/Makefile
index c98fd5adfa6..28be3aba57c 100644
--- a/lib/csu/arm/Makefile
+++ b/lib/csu/arm/Makefile
@@ -9,7 +9,7 @@ ELFDIR= ${.CURDIR}/../common_elf
.PATH: ${ELFDIR}
CFLAGS+= -I${ELFDIR} -I${.CURDIR}
-PICFLAG?=-fpic -DPIC
+PICFLAG?=-fpic
all: ${OBJS}
@@ -32,8 +32,8 @@ crtbegin.o: crtbegin.c
@rm -f ${.TARGET}.o
crtbeginS.o: crtbeginS.c
- @echo ${COMPILE.c} ${PICFLAG} ${ELFDIR}/crtbeginS.c -o ${.TARGET}
- @${COMPILE.c} ${PICFLAG} ${ELFDIR}/crtbeginS.c -o ${.TARGET}.o
+ @echo ${COMPILE.c} ${PICFLAG} -DPIC ${ELFDIR}/crtbeginS.c -o ${.TARGET}
+ @${COMPILE.c} ${PICFLAG} -DPIC ${ELFDIR}/crtbeginS.c -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
@@ -44,8 +44,8 @@ crtend.o: crtend.c
@rm -f ${.TARGET}.o
crtendS.o: crtendS.c
- @echo ${COMPILE.c} ${PICFLAG} ${ELFDIR}/crtendS.c -o ${.TARGET}
- @${COMPILE.c} ${PICFLAG} ${ELFDIR}/crtendS.c -o ${.TARGET}.o
+ @echo ${COMPILE.c} ${PICFLAG} -DPIC ${ELFDIR}/crtendS.c -o ${.TARGET}
+ @${COMPILE.c} ${PICFLAG} -DPIC ${ELFDIR}/crtendS.c -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o