b8f9a57923
Add a new "disable-ld" option that disables ld. This is required on Darwin where it is not currently built, but is also required for some SunOS setups where an external GCC is used and we do not want a libgcc dependency on it. There are now two ld-related PLIST variables, "gld" for the general handling of whether GNU ld is built or not, and "ld" for the symlinks we create. In addition Darwin also needs --disable-libctf to avoid a build issue, and an additional PLIST variable to handle GNU as which is also not built on Darwin. While here clean up a bunch of variable handling and NetBSD 5/6 workarounds, and simplify the setup of SYMLINK_FILES. Fixes build on Darwin, and SunOS when using an external GCC. Ok fcambus@
24 lines
529 B
Makefile
24 lines
529 B
Makefile
# $NetBSD: options.mk,v 1.1 2021/01/29 13:10:34 jperkin Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.binutils
|
|
PKG_SUPPORTED_OPTIONS= disable-ld
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "Darwin"
|
|
PKG_SUGGESTED_OPTIONS= disable-ld
|
|
.endif
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
PLIST_VARS+= gld
|
|
|
|
#
|
|
# Disable ld completely. With the introduction of "libdep.so" this may now be
|
|
# required on some systems to avoid a dependency on libgcc.
|
|
#
|
|
.if !empty(PKG_OPTIONS:Mdisable-ld)
|
|
CONFIGURE_ARGS+= --disable-ld
|
|
.else
|
|
PLIST.gld= yes
|
|
.endif
|