graphics/cairo: make symbol lookup feature optional, avoiding libbfd
If cairo finds libbfd, it would use it unless symbol lookup was not requested. This dependency is problematic as the binutils library does not provide long-term ABI stability. We can live fine without this feature and reduce the dependency footprint.
This commit is contained in:
parent
e68808ff8f
commit
6ea9d6339c
2 changed files with 13 additions and 4 deletions
|
@ -1,8 +1,8 @@
|
|||
# $NetBSD: Makefile,v 1.147 2020/08/17 20:17:27 leot Exp $
|
||||
# $NetBSD: Makefile,v 1.148 2021/04/23 16:56:21 thor Exp $
|
||||
|
||||
.include "../../graphics/cairo/Makefile.common"
|
||||
|
||||
PKGREVISION= 2
|
||||
PKGREVISION= 3
|
||||
|
||||
TEST_TARGET= check
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# $NetBSD: options.mk,v 1.19 2019/11/02 22:37:54 rillig Exp $
|
||||
# $NetBSD: options.mk,v 1.20 2021/04/23 16:56:21 thor Exp $
|
||||
|
||||
PKG_OPTIONS_VAR= PKG_OPTIONS.cairo
|
||||
PKG_SUPPORTED_OPTIONS= x11 xcb
|
||||
PKG_SUPPORTED_OPTIONS= x11 xcb bfd
|
||||
.if exists(/System/Library/Frameworks/Quartz.framework)
|
||||
PKG_SUPPORTED_OPTIONS+= quartz
|
||||
.endif
|
||||
|
@ -57,3 +57,12 @@ CONFIGURE_ARGS+= --disable-quartz
|
|||
CONFIGURE_ARGS+= --disable-quartz-font
|
||||
CONFIGURE_ARGS+= --disable-quartz-image
|
||||
.endif
|
||||
|
||||
# The symbol lookup feature uses libbfd from binutils, which
|
||||
# is rather fragile when they decide to change the API again.
|
||||
.if !empty(PKG_OPTIONS:Mbfd)
|
||||
CONFIGURE_ARGS+= --enable-symbol-lookup
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-symbol-lookup
|
||||
.endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue