summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2010-12-24 20:08:53 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2010-12-24 20:08:53 +0000
commitf532008dddc3a24cd04e33a164e8fef31d5e6536 (patch)
treea9cb5b5aa0d60c295bc9092f2ae694de149b570e /lib
parent951e89c84729fd737644ac794dedfc4b996cf596 (diff)
crtbeginS.o needs to be buit with -fPIC; with -fpic the relocations for the
gcc3/4 exception handling related symbols will be truncated causing linker failures when building shared libraries. ok drahn@, deraadt@, miod@
Diffstat (limited to 'lib')
-rw-r--r--lib/csu/sparc/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/csu/sparc/Makefile b/lib/csu/sparc/Makefile
index 68960c91d0d..041253ec917 100644
--- a/lib/csu/sparc/Makefile
+++ b/lib/csu/sparc/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.10 2009/10/27 23:59:59 deraadt Exp $
+# $OpenBSD: Makefile,v 1.11 2010/12/24 20:08:52 kettenis Exp $
# from: @(#)Makefile 5.5 (Berkeley) 5/21/91
OBJS= crt0.o gcrt0.o crtbegin.o crtend.o crtbeginS.o crtendS.o
@@ -8,6 +8,8 @@ ELFDIR= ${.CURDIR}/../common_elf
.PATH: ${ELFDIR}
CFLAGS+= -I${ELFDIR} -I${.CURDIR}
+PICFLAG= -fPIC
+
all: ${OBJS}
crt0.o: crt0.c