summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2010-12-24 20:08:52 +0000
committerkettenis <kettenis@openbsd.org>2010-12-24 20:08:52 +0000
commit65ba3c357cf14d208f2e0c8fd1a2610028331be1 (patch)
tree6b5b34190f82557265475ce5f11767814865184b
parentfix crash: (diff)
downloadwireguard-openbsd-65ba3c357cf14d208f2e0c8fd1a2610028331be1.tar.xz
wireguard-openbsd-65ba3c357cf14d208f2e0c8fd1a2610028331be1.zip
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@
-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