diff options
author | 2008-09-07 19:22:21 +0000 | |
---|---|---|
committer | 2008-09-07 19:22:21 +0000 | |
commit | 7a204682a3b167deffa129745adf22d7098056a6 (patch) | |
tree | 62038e1f13ca8964fc79e4c932caab950e21ab14 /lib/libssl | |
parent | allow PICFLAG to be overridden; ok kettenis drahn (diff) | |
download | wireguard-openbsd-7a204682a3b167deffa129745adf22d7098056a6.tar.xz wireguard-openbsd-7a204682a3b167deffa129745adf22d7098056a6.zip |
sparc now requires this bloated library to be -fPIC
Diffstat (limited to 'lib/libssl')
-rw-r--r-- | lib/libssl/crypto/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libssl/crypto/Makefile b/lib/libssl/crypto/Makefile index 6994201d345..122496d9130 100644 --- a/lib/libssl/crypto/Makefile +++ b/lib/libssl/crypto/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.47 2008/09/06 12:20:07 djm Exp $ +# $OpenBSD: Makefile,v 1.48 2008/09/07 19:22:21 deraadt Exp $ LIB= crypto WANTLINT= @@ -21,6 +21,10 @@ CFLAGS+= -DB_ENDIAN CFLAGS+= -DDSO_DLFCN -DHAVE_DLFCN_H .endif +.if ${MACHINE_ARCH} == "sparc" +PICFLAG=-fPIC +.endif + CFLAGS+= -DTERMIOS -DANSI_SOURCE -DNO_ERR -DNO_WINDOWS_BRAINDEATH # Patented algorithms CFLAGS+= -DOPENSSL_NO_IDEA |