Changeset View
Changeset View
Standalone View
Standalone View
graphics/dspdfviewer/Makefile
Show All 36 Lines | |||||
.if ${CHOSEN_COMPILER_TYPE} == clang | .if ${CHOSEN_COMPILER_TYPE} == clang | ||||
# Build fails with LLVM 4.0. Reported upstream as #191: | # Build fails with LLVM 4.0. Reported upstream as #191: | ||||
# https://github.com/dannyedel/dspdfviewer/issues/191 | # https://github.com/dannyedel/dspdfviewer/issues/191 | ||||
CFLAGS+= -Wno-error=undefined-func-template | CFLAGS+= -Wno-error=undefined-func-template | ||||
.endif | .endif | ||||
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200039 && ${CHOSEN_COMPILER_TYPE} == clang | .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200039 && ${CHOSEN_COMPILER_TYPE} == clang | ||||
# (rene) also related to issue #191 which is still open as of 2020-10-21 | |||||
CFLAGS+= -Wno-error=zero-as-null-pointer-constant | CFLAGS+= -Wno-error=zero-as-null-pointer-constant | ||||
.endif | .endif | ||||
# Fixes build failure for Clang 8.0.0 | # Fixes build failure for Clang 8.0.0 | ||||
.if ${OPSYS} == FreeBSD && (${OSVERSION} >= 1300014 || (${OSVERSION} >= 1103000 && ${OSVERSION} < 1200000) || ${OSVERSION} >= 1201000) && ${CHOSEN_COMPILER_TYPE} == clang | .if ${OPSYS} == FreeBSD && ${CHOSEN_COMPILER_TYPE} == clang | ||||
CFLAGS+= -Wno-error=extra-semi-stmt | CFLAGS+= -Wno-error=extra-semi-stmt | ||||
.endif | .endif | ||||
# Fixes build failure for Clang 11.0.0 | # Fixes build failure for Clang 11.0.0 | ||||
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1300111 && ${CHOSEN_COMPILER_TYPE} == clang | .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1300111 && ${CHOSEN_COMPILER_TYPE} == clang | ||||
CFLAGS+= -Wno-error=suggest-destructor-override | CFLAGS+= -Wno-error=suggest-destructor-override | ||||
CFLAGS+= -Wno-error=suggest-override | CFLAGS+= -Wno-error=suggest-override | ||||
.endif | .endif | ||||
Show All 11 Lines |