Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Aug 2019 20:43:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 238780] converters/pdf2djvu: fix build with GCC-based architectures
Message-ID:  <bug-238780-7788-7A2blWvrn2@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-238780-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-238780-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238780

--- Comment #12 from Samy Mahmoudi <samy.mahmoudi@gmail.com> ---
Auxiliary problem: first, I went for something like:
If on GCC-architecture, then use gcc.
Else, default to clang with gcc as an option.
These considerations led me to:
-----------------------------------

GCC_BUILD_DESC=3D         Build with GCC (useless on GCC-architectures)

...

.include <bsd.port.pre.mk>

.if ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} || ${ARCH} =3D=3D sparc64
USES+=3D          compiler:gcc-c++11-lib
.else
.if ${PORT_OPTIONS:MGCC_BUILD}
USES+=3D          compiler:gcc-c++11-lib
.else
USES+=3D          compiler:c++11-lang
.endif
.endif

...

.include <bsd.port.post.mk>
----------------------------------
It seemed that the inner conditional was not taken into account.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-238780-7788-7A2blWvrn2>