Remove last uses of -mlongcall on powerpc

-Wl,--relax solves linker errors of "relocation truncated to fit",
-mlongcall isn't necessary.

diff from Brad Smith, ok cwen@
This commit is contained in:
gkoehler 2020-11-15 22:05:10 +00:00
parent d7ff12d1fa
commit 89c447cbc4
2 changed files with 4 additions and 7 deletions

View File

@ -1,10 +1,11 @@
# $OpenBSD: Makefile,v 1.16 2020/09/19 06:37:23 thfr Exp $
# $OpenBSD: Makefile,v 1.17 2020/11/15 22:05:10 gkoehler Exp $
COMMENT = 2D and 3D game engine
V = 3.2.3
DISTNAME = godot-${V}-stable
PKGNAME = godot-${V}
REVISION = 0
CATEGORIES = games
HOMEPAGE = https://godotengine.org/
MAINTAINER = Omar Polo <op@omarpolo.com>
@ -78,8 +79,6 @@ WANTLIB += atomic
# Fix relocation overflows
.if ${MACHINE_ARCH:Mpowerpc}
CFLAGS += -mlongcall
CXXFLAGS += -mlongcall
LDFLAGS += -Wl,--relax
.endif

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.130 2020/11/11 21:27:03 cwen Exp $
# $OpenBSD: Makefile,v 1.131 2020/11/15 22:05:10 gkoehler Exp $
# patches/patch-Source_JavaScriptCore_javascriptcoregtk_pc_in
# patches/patch-Source_WebKit_gtk_webkit2gtk-web-extension_pc_in
@ -14,7 +14,7 @@ PORTROACH = limitw:1,even
COMMENT = GTK+ port of the WebKit rendering engine
V = 2.30.2
REVISION = 0
REVISION = 1
DISTNAME = webkitgtk-${V}
PKGNAME = webkitgtk4-${V}
EXTRACT_SUFX = .tar.xz
@ -119,8 +119,6 @@ LDFLAGS += -Wl,--no-keep-memory
.if ${MACHINE_ARCH} == "powerpc"
# XXX fix colors being off, it would be nice to fix the code
CONFIGURE_ARGS += -DENABLE_GRAPHICS_CONTEXT_GL=OFF
CFLAGS += -mlongcall
CXXFLAGS += -mlongcall
LDFLAGS += -Wl,--relax
PATCH_LIST = patch-* powerpc-patch-*
.endif