aboutsummaryrefslogtreecommitdiff
path: root/lib/csu
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2016-01-10 23:41:31 +0000
committerAndrew Turner <andrew@FreeBSD.org>2016-01-10 23:41:31 +0000
commit84eacaf728a102612d83861d73c3aaa353ca3dc2 (patch)
treefbfb15dcf201e24a79f6458ab4f4de2488ac8d26 /lib/csu
parent5ffa1d26c000f28662e2485a7297131093c9460d (diff)
Notes
Diffstat (limited to 'lib/csu')
-rw-r--r--lib/csu/arm/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/csu/arm/Makefile b/lib/csu/arm/Makefile
index 9747619c233af..1b3a6f8421357 100644
--- a/lib/csu/arm/Makefile
+++ b/lib/csu/arm/Makefile
@@ -7,6 +7,7 @@ OBJS= ${SRCS:N*.h:R:S/$/.o/g}
OBJS+= Scrt1.o gcrt1.o
CFLAGS+= -I${.CURDIR}/../common \
-I${.CURDIR}/../../libc/include
+STATIC_CFLAGS+= -mlong-calls
FILES= ${OBJS}
FILESMODE= ${LIBMODE}
@@ -23,14 +24,14 @@ CLEANFILES+= crt1.s gcrt1.s Scrt1.s
# directly compiled to .o files.
crt1.s: crt1.c
- ${CC} ${CFLAGS} -S -o ${.TARGET} ${.CURDIR}/crt1.c
+ ${CC} ${CFLAGS} ${STATIC_CFLAGS} -S -o ${.TARGET} ${.CURDIR}/crt1.c
sed ${SED_FIX_NOTE} ${.TARGET}
crt1.o: crt1.s
${CC} ${ACFLAGS} -c -o ${.TARGET} crt1.s
gcrt1.s: crt1.c
- ${CC} ${CFLAGS} -DGCRT -S -o ${.TARGET} ${.CURDIR}/crt1.c
+ ${CC} ${CFLAGS} ${STATIC_CFLAGS} -DGCRT -S -o ${.TARGET} ${.CURDIR}/crt1.c
sed ${SED_FIX_NOTE} ${.TARGET}
gcrt1.o: gcrt1.s