use -fPIC, fixes sparc64

This commit is contained in:
sthen 2011-11-14 11:03:00 +00:00
parent 87a6377ebf
commit b048d740e4
2 changed files with 17 additions and 1 deletions

View File

@ -1,10 +1,11 @@
# $OpenBSD: Makefile,v 1.1.1.1 2011/09/16 20:07:35 jasper Exp $
# $OpenBSD: Makefile,v 1.2 2011/11/14 11:03:00 sthen Exp $
SHARED_ONLY= Yes
COMMENT= small footprint implementation of Tcl
DISTNAME= jimtcl-0.72
REVISION= 0
SHARED_LIBS= jim 0.0
CATEGORIES= lang devel

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-autosetup_cc-shared_tcl,v 1.1 2011/11/14 11:03:00 sthen Exp $
--- autosetup/cc-shared.tcl.orig Mon Nov 14 11:55:10 2011
+++ autosetup/cc-shared.tcl Mon Nov 14 11:55:19 2011
@@ -55,9 +55,9 @@ switch -glob -- [get-define host] {
* {
# Generic Unix settings
define SH_LINKFLAGS -rdynamic
- define SH_CFLAGS -fpic
+ define SH_CFLAGS -fPIC
define SH_LDFLAGS -shared
- define SHOBJ_CFLAGS -fpic
+ define SHOBJ_CFLAGS -fPIC
define SHOBJ_LDFLAGS "-shared -nostartfiles"
}
}