[Bug 238780] converters/pdf2djvu: fix build with GCC-based architectures

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Aug 9 20:43:05 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238780

--- Comment #12 from Samy Mahmoudi <samy.mahmoudi at 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=         Build with GCC (useless on GCC-architectures)

...

.include <bsd.port.pre.mk>

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

...

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

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


More information about the freebsd-ports-bugs mailing list