Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Oct 2018 11:44:29 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r483471 - in head/devel/jna: . files
Message-ID:  <201810301144.w9UBiTn1098608@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Tue Oct 30 11:44:29 2018
New Revision: 483471
URL: https://svnweb.freebsd.org/changeset/ports/483471

Log:
  Fix build on poweprc64.
  
  PR:		231741
  Submitted by:	Piotr Kubaj

Modified:
  head/devel/jna/Makefile
  head/devel/jna/files/patch-native_Makefile

Modified: head/devel/jna/Makefile
==============================================================================
--- head/devel/jna/Makefile	Tue Oct 30 11:36:44 2018	(r483470)
+++ head/devel/jna/Makefile	Tue Oct 30 11:44:29 2018	(r483471)
@@ -15,7 +15,6 @@ LICENSE_FILE_APACHE20=	${WRKSRC}/LICENSE.AL
 
 BROKEN_armv6=		fails to compile: build.xml: compilation failed
 BROKEN_armv7=		fails to compile: build.xml: compilation failed
-BROKEN_powerpc64=	fails to compile: unrecognized command line option "-Wno-unknown-warning-option"
 
 USES=		autoreconf:build gmake libtool
 USE_ANT=	yes
@@ -36,7 +35,7 @@ TEST_TARGET=	test
 
 OPTIONS_DEFINE=	DOCS
 
-ANT_ARCH=	${ARCH:S/amd64/x86-64/:S/i386/x86/}
+ANT_ARCH=	${ARCH:S/amd64/x86-64/:S/i386/x86/:S/powerpc64/ppc64/}
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \

Modified: head/devel/jna/files/patch-native_Makefile
==============================================================================
--- head/devel/jna/files/patch-native_Makefile	Tue Oct 30 11:36:44 2018	(r483470)
+++ head/devel/jna/files/patch-native_Makefile	Tue Oct 30 11:44:29 2018	(r483471)
@@ -18,3 +18,16 @@
  LDFLAGS=-o $@ -shared
  CDEFINES+=-DHAVE_PROTECTION -DFFI_MMAP_EXEC_WRIT -DUSE_DEAFULT_LIBNAME_ENCODING
  endif
+@@ -338,10 +338,10 @@ endif
+ ifeq ($(CC),gcc)
+     GCC_MAJOR_VERSION = $(shell gcc -dumpversion | cut -f 1 -d '.')
+     ifneq ($(GCC_MAJOR_VERSION),4)
+-	LOC_CC_OPTS=-Wno-unknown-warning-option -Werror -Wno-clobbered -Wno-unused-variable
++	LOC_CC_OPTS=-Werror -Wno-unused-variable
+     endif
+ else
+-    LOC_CC_OPTS=-Wno-unknown-warning-option -Werror -Wno-clobbered -Wno-unused-variable
++    LOC_CC_OPTS=-Werror -Wno-unused-variable
+ endif
+ 
+ # Enable 64-bit builds if the arch demands it



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810301144.w9UBiTn1098608>