Fix GOT overflow on mips64.

OK sthen@
This commit is contained in:
visa 2020-07-27 11:08:45 +00:00
parent c8f77d6cb9
commit 795bafca3c

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.107 2020/07/11 22:54:38 sthen Exp $
# $OpenBSD: Makefile,v 1.108 2020/07/27 11:08:45 visa Exp $
BROKEN-alpha = .got subsegment exceeds 64K (size 101480)
@ -126,6 +126,10 @@ CONFIGURE_ARGS += -DBUILD_wireshark=false
CONFIGURE_ENV += LDFLAGS="-Wl,--relax"
.endif
.if ${MACHINE_ARCH} == "mips64" || ${MACHINE_ARCH} == "mips64el"
CXXFLAGS += -mxgot
.endif
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/wireshark.desktop ${PREFIX}/share/applications/