fmt needs to be built without -Wl,--as-needed on these archs, add a AS_NEEDED option to do so. This fixes the build on powerpc and mips64. Thanks to jj@ for testing on mips64, where there is still an int128 related test failure. OK jca@ and Ashton Fagg (maintainer)
34 lines
665 B
Makefile
34 lines
665 B
Makefile
# $OpenBSD: Makefile,v 1.2 2021/01/30 15:37:05 cwen Exp $
|
|
|
|
COMMENT= alternative formatting library for C and C++
|
|
|
|
GH_ACCOUNT= fmtlib
|
|
GH_PROJECT= fmt
|
|
GH_TAGNAME= 7.1.3
|
|
|
|
SHARED_LIBS= fmt 0.0
|
|
|
|
CATEGORIES= devel
|
|
|
|
MAINTAINER= Ashton Fagg <ashton@fagg.id.au>
|
|
|
|
# MIT
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
# C++11
|
|
COMPILER= base-clang ports-gcc
|
|
MODULES= devel/cmake
|
|
WANTLIB+= ${COMPILER_LIBCXX}
|
|
|
|
|
|
CONFIGURE_ARGS+= -DBUILD_SHARED_LIBS=on
|
|
|
|
# Fix undefined references to pthread_* symbols on clang+ld.bfd archs by
|
|
# disabling -Wl,--as-needed.
|
|
.include <bsd.port.arch.mk>
|
|
.if !${PROPERTIES:Mlld} && ${PROPERTIES:Mclang}
|
|
CONFIGURE_ARGS+= -DAS_NEEDED=off
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|