Monday, August 13, 2018

freerdp: fix sparc64 build

On Sat, Aug 11, 2018 at 09:18:21PM -0600, landry@openbsd.org wrote:
> http://build-failures.rhaalovely.net//sparc64/2018-07-31/x11/freerdp.log

/usr/obj/ports/freerdp-2.0.0rc1/freerdp-2.0.0-rc1/libfreerdp/core/client.c:39: error: thread-local storage not supported for this target
cc1: error: unrecognized command line option "-Wno-unused-but-set-variable"

Build tested on amd64 and sparc64, OK?

Index: Makefile
===================================================================
RCS file: /cvs/ports/x11/freerdp/Makefile,v
retrieving revision 1.32
diff -u -p -r1.32 Makefile
--- Makefile 8 Jun 2018 20:32:16 -0000 1.32
+++ Makefile 13 Aug 2018 18:17:46 -0000
@@ -23,6 +23,9 @@ PERMIT_PACKAGE_CDROM = Yes
WANTLIB += X11 Xcursor Xext Xfixes Xi Xinerama Xrender Xv avcodec
WANTLIB += avutil c crypto cups execinfo m pthread ssl xkbfile

+# thread-local storage
+COMPILER = base-clang ports-clang
+
MODULES = devel/cmake

CFLAGS += -I${X11BASE}/include -I${LOCALBASE}/include

No comments:

Post a Comment