more sparc leftovers

This commit is contained in:
jasper 2016-09-01 11:01:32 +00:00
parent b438691876
commit f079a29523
3 changed files with 4 additions and 18 deletions

View File

@ -1,14 +0,0 @@
$OpenBSD: patch-ir_Makefile,v 1.2 2010/09/22 08:42:53 landry Exp $
--- ir/Makefile.orig Fri Jul 25 15:41:51 2008
+++ ir/Makefile Mon Sep 13 21:10:57 2010
@@ -63,6 +63,10 @@ HAVE_STATIC := yes
endif
endif
+ifeq ($(build_cpu), sparc)
+ir_impl.o: CXXFLAGS=$(patsubst -O%,,$(CXXFLAGS))
+endif
+
# normal rules
all: lib prg

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.91 2016/08/21 21:01:03 sthen Exp $
# $OpenBSD: Makefile,v 1.92 2016/09/01 11:01:32 jasper Exp $
#ONLY_FOR_ARCHS = alpha amd64 hppa i386 powerpc sparc64
# ignore arches that have a more recent gcc port
@ -168,7 +168,7 @@ ALL_TARGET = bootstrap2
MAKE_FLAGS += libstdc___la_LDFLAGS='-version-info 31:0:0 -lm'
.if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "amd64"
.if ${MACHINE_ARCH} == "amd64"
PIC = 1
PKG_ARGS += -DPIC=1
.else

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-imap_src_osdep_unix_Makefile,v 1.3 2016/03/10 21:58:51 naddy Exp $
$OpenBSD: patch-imap_src_osdep_unix_Makefile,v 1.4 2016/09/01 11:01:33 jasper Exp $
--- imap/src/osdep/unix/Makefile.orig Mon Jan 12 06:12:25 2015
+++ imap/src/osdep/unix/Makefile Thu Mar 10 22:35:28 2016
@@ -44,7 +44,7 @@ IP=4
@ -53,7 +53,7 @@ $OpenBSD: patch-imap_src_osdep_unix_Makefile,v 1.3 2016/03/10 21:58:51 naddy Exp
RM=rm -rf
SH=sh
+.if ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "sparc"
+.if ${MACHINE_ARCH} == "sparc64"
+PICFLAG= -fPIC
+.else
+PICFLAG= -fpic