summaryrefslogtreecommitdiff
path: root/lib/csu/powerpc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csu/powerpc/Makefile')
-rw-r--r--lib/csu/powerpc/Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/csu/powerpc/Makefile b/lib/csu/powerpc/Makefile
index d1ff5d85084..acdea1b84d6 100644
--- a/lib/csu/powerpc/Makefile
+++ b/lib/csu/powerpc/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.18 2008/11/21 19:19:13 otto Exp $
+# $OpenBSD: Makefile,v 1.19 2009/01/14 19:45:20 kurt Exp $
# from: @(#)Makefile 8.1 (Berkeley) 6/1/93
CFLAGS+= -DLIBC_SCCS
@@ -14,8 +14,8 @@ CFLAGS+= -I${ELFDIR} -I${.CURDIR}
all: ${OBJS}
crt0.o: crt0.c
- @echo ${COMPILE.c} -DCRT0 ${.CURDIR}/crt0.c -o ${.TARGET}
- @${COMPILE.c} -DCRT0 ${.CURDIR}/crt0.c -o ${.TARGET}.o
+ @echo ${COMPILE.c} -fpie -DCRT0 ${.CURDIR}/crt0.c -o ${.TARGET}
+ @${COMPILE.c} -fpie -DCRT0 ${.CURDIR}/crt0.c -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
@@ -26,8 +26,8 @@ gcrt0.o: crt0.c
@rm -f ${.TARGET}.o
crtbegin.o: crtbegin.c
- @echo ${COMPILE.c} ${ELFDIR}/crtbegin.c -o ${.TARGET}
- @${COMPILE.c} ${ELFDIR}/crtbegin.c -o ${.TARGET}.o
+ @echo ${COMPILE.c} -fpie ${ELFDIR}/crtbegin.c -o ${.TARGET}
+ @${COMPILE.c} -fpie ${ELFDIR}/crtbegin.c -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
@@ -38,8 +38,8 @@ crtbeginS.o: crtbeginS.c
@rm -f ${.TARGET}.o
crtend.o: crtend.c
- @echo ${COMPILE.c} ${ELFDIR}/crtend.c -o ${.TARGET}
- @${COMPILE.c} ${ELFDIR}/crtend.c -o ${.TARGET}.o
+ @echo ${COMPILE.c} -fpie ${ELFDIR}/crtend.c -o ${.TARGET}
+ @${COMPILE.c} -fpie ${ELFDIR}/crtend.c -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o