use -fPIC on sparc

prodded to fix by Anil and joakinen@yahoo.es
This commit is contained in:
pvalchev 2004-06-09 07:25:26 +00:00
parent 47cb6d0543
commit c34f47c8ba

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-src_osdep_unix_Makefile,v 1.11 2004/04/02 08:18:48 jakob Exp $
$OpenBSD: patch-src_osdep_unix_Makefile,v 1.12 2004/06/09 07:25:26 pvalchev Exp $
--- src/osdep/unix/Makefile.orig 2003-07-15 03:35:30.000000000 +0200
+++ src/osdep/unix/Makefile 2004-04-02 09:58:52.000000000 +0200
@@ -28,8 +28,8 @@ SSLTYPE=nopwd
@ -32,7 +32,7 @@ $OpenBSD: patch-src_osdep_unix_Makefile,v 1.11 2004/04/02 08:18:48 jakob Exp $
RM=rm -rf
SH=sh
+.if ${MACHINE_ARCH} == "sparc64"
+.if ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "sparc"
+PICFLAG= -fPIC
+.else
+PICFLAG= -fpic