Date: Wed, 6 Feb 2019 00:08:09 +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: r492278 - in head/math/rexx-regmath: . files Message-ID: <201902060008.x160898s037537@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: linimon Date: Wed Feb 6 00:08:08 2019 New Revision: 492278 URL: https://svnweb.freebsd.org/changeset/ports/492278 Log: Base GCC doesn't support -Wno-incompatible-pointer-types, which breaks building on GCC-based architectures. Add -Wno-incompatible-pointer-types only when using Clang. PR: 235512 Submitted by: Piotr Kubaj Approved by: maintainer Modified: head/math/rexx-regmath/Makefile head/math/rexx-regmath/files/patch-Makefile.bsd Modified: head/math/rexx-regmath/Makefile ============================================================================== --- head/math/rexx-regmath/Makefile Wed Feb 6 00:04:13 2019 (r492277) +++ head/math/rexx-regmath/Makefile Wed Feb 6 00:08:08 2019 (r492278) @@ -14,16 +14,10 @@ COMMENT= Two mathematics libraries for Rexx LICENSE= MPL10 -BROKEN_mips= fails to compile: unrecognized command line option "-Wno-incompatible-pointer-types" -BROKEN_mips64= fails to compile: unrecognized command line option "-Wno-incompatible-pointer-types" -BROKEN_powerpc64= fails to compile: unrecognized command line option "-Wno-incompatible-pointer-types" - BUILD_DEPENDS= ${LOCALBASE}/include/rexxsaa.h:lang/rexx-regina USES= zip -CFLAGS+= -Wno-incompatible-pointer-types - WRKSRC= ${WRKDIR}/math USE_LDCONFIG= yes LLD_UNSAFE= yes @@ -37,6 +31,10 @@ PORTDOCS= regmath.pdf PORTEXAMPLES= README testrxmath testrexxmath OPTIONS_DEFINE= DOCS EXAMPLES + +.if !exists(/usr/lib/libstdc++.so) +CFLAGS+= -Wno-incompatible-pointer-types +.endif do-install: ${INSTALL_LIB} ${WRKSRC}/librexxmath.so ${STAGEDIR}${PREFIX}/lib/ Modified: head/math/rexx-regmath/files/patch-Makefile.bsd ============================================================================== --- head/math/rexx-regmath/files/patch-Makefile.bsd Wed Feb 6 00:04:13 2019 (r492277) +++ head/math/rexx-regmath/files/patch-Makefile.bsd Wed Feb 6 00:08:08 2019 (r492278) @@ -1,12 +1,11 @@ ---- Makefile.bsd.orig 2001-11-04 18:09:04 UTC +--- Makefile.bsd.orig 2001-11-04 17:09:04 UTC +++ Makefile.bsd -@@ -9,7 +9,8 @@ +@@ -9,7 +9,7 @@ POPT=-O -fomit-frame-pointer PLFL=-s DEBUG=-g -CFLAGS=$(OPT) $(DEBUG) -pipe -fpic -I $$HOME/regina -pipe +CFLAGS+=$(OPT) $(DEBUG) -pipe -fpic -I $$HOME/regina -pipe -I/usr/local/include -+CFLAGS+=-Wno-incompatible-pointer-types LDFLAGS=-Bdynamic -Bshareable $(LFL) LIBS=-lm so=so
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902060008.x160898s037537>