Rename BR2_PREFER_STATIC_LIB to BR2_STATIC_LIBS

Since a while, the semantic of BR2_PREFER_STATIC_LIB has been changed
from "prefer static libraries when possible" to "use only static
libraries". The former semantic didn't make much sense, since the user
had absolutely no control/idea of which package would use static
libraries, and which packages would not. Therefore, for quite some
time, we have been starting to enforce that BR2_PREFER_STATIC_LIB
should really build everything with static libraries.

As a consequence, this patch renames BR2_PREFER_STATIC_LIB to
BR2_STATIC_LIBS, and adjust the Config.in option accordingly.

This also helps preparing the addition of other options to select
shared, shared+static or just static.

Note that we have verified that this commit can be reproduced by
simply doing a global rename of BR2_PREFER_STATIC_LIB to
BR2_STATIC_LIBS plus adding BR2_PREFER_STATIC_LIB to Config.in.legacy.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
This commit is contained in:
Thomas Petazzoni 2014-12-03 22:41:29 +01:00
parent 2d23d40279
commit 665e13c85e
232 changed files with 430 additions and 418 deletions

View File

@ -525,7 +525,7 @@ config BR2_ENABLE_SSP
comment "enabling Stack Smashing Protection requires support in the toolchain" comment "enabling Stack Smashing Protection requires support in the toolchain"
depends on !BR2_TOOLCHAIN_HAS_SSP depends on !BR2_TOOLCHAIN_HAS_SSP
config BR2_PREFER_STATIC_LIB config BR2_STATIC_LIBS
bool "build statically linked applications, no dynamic libraries" bool "build statically linked applications, no dynamic libraries"
help help
Build all applications for the target statically linked. Build all applications for the target statically linked.

View File

@ -99,6 +99,18 @@ comment "----------------------------------------------------"
endif endif
############################################################################### ###############################################################################
comment "Legacy options removed in 2015.02"
config BR2_PREFER_STATIC_LIB
bool "static library option renamed"
select BR2_STATIC_LIBS
help
The BR2_PREFER_STATIC_LIB was renamed to BR2_STATIC_LIBS. It
highlights the fact that the option no longer "prefers"
static libraries, but "enforces" static libraries (i.e
shared libraries are completely unused).
comment "Legacy options removed in 2014.11" comment "Legacy options removed in 2014.11"
config BR2_x86_generic config BR2_x86_generic

View File

@ -277,7 +277,7 @@ config BR2_BINFMT_FDPIC
config BR2_BINFMT_FLAT config BR2_BINFMT_FLAT
bool "FLAT" bool "FLAT"
depends on BR2_bfin || BR2_m68k depends on BR2_bfin || BR2_m68k
select BR2_PREFER_STATIC_LIB select BR2_STATIC_LIBS
help help
FLAT binary is a relatively simple and lightweight executable format FLAT binary is a relatively simple and lightweight executable format
based on the original a.out format. It is widely used in environment based on the original a.out format. It is widely used in environment

View File

@ -102,7 +102,7 @@ typical packages will therefore only use a few of them.
** +CMAKE_BUILD_TYPE+ is driven by +BR2_ENABLE_DEBUG+; ** +CMAKE_BUILD_TYPE+ is driven by +BR2_ENABLE_DEBUG+;
** +CMAKE_INSTALL_PREFIX+; ** +CMAKE_INSTALL_PREFIX+;
** +BUILD_SHARED_LIBS+ is driven by +BR2_PREFER_STATIC_LIB+; ** +BUILD_SHARED_LIBS+ is driven by +BR2_STATIC_LIBS+;
** +BUILD_DOC+, +BUILD_DOCS+ are disabled; ** +BUILD_DOC+, +BUILD_DOCS+ are disabled;
** +BUILD_EXAMPLE+, +BUILD_EXAMPLES+ are disabled; ** +BUILD_EXAMPLE+, +BUILD_EXAMPLES+ are disabled;
** +BUILD_TEST+, +BUILD_TESTS+, +BUILD_TESTING+ are disabled. ** +BUILD_TEST+, +BUILD_TESTS+, +BUILD_TESTING+ are disabled.

View File

@ -271,7 +271,7 @@ use in the comment.
** Comment string: +wchar+ ** Comment string: +wchar+
* dynamic library * dynamic library
** Dependency symbol: +!BR2_PREFER_STATIC_LIB+ ** Dependency symbol: +!BR2_STATIC_LIBS+
** Comment string: +dynamic library+ ** Comment string: +dynamic library+
==== Dependencies on a Linux kernel built by buildroot ==== Dependencies on a Linux kernel built by buildroot

View File

@ -400,7 +400,7 @@ menu "Interpreter languages and scripting"
source "package/lua/Config.in" source "package/lua/Config.in"
source "package/luainterpreter/Config.in" source "package/luainterpreter/Config.in"
source "package/luajit/Config.in" source "package/luajit/Config.in"
if BR2_PACKAGE_HAS_LUAINTERPRETER && !BR2_PREFER_STATIC_LIB if BR2_PACKAGE_HAS_LUAINTERPRETER && !BR2_STATIC_LIBS
# lua modules are dynamically loaded, so not available on static builds # lua modules are dynamically loaded, so not available on static builds
menu "Lua libraries/modules" menu "Lua libraries/modules"
source "package/cgilua/Config.in" source "package/cgilua/Config.in"
@ -465,7 +465,7 @@ endmenu
endif endif
source "package/php/Config.in" source "package/php/Config.in"
if BR2_PACKAGE_PHP if BR2_PACKAGE_PHP
if !BR2_PREFER_STATIC_LIB if !BR2_STATIC_LIBS
menu "External php extensions" menu "External php extensions"
source "package/php-geoip/Config.in" source "package/php-geoip/Config.in"
source "package/php-gnupg/Config.in" source "package/php-gnupg/Config.in"
@ -476,7 +476,7 @@ menu "External php extensions"
source "package/php-zmq/Config.in" source "package/php-zmq/Config.in"
endmenu endmenu
endif endif
if BR2_PREFER_STATIC_LIB if BR2_STATIC_LIBS
comment "External PHP extensions need a toolchain w/ dynamic library" comment "External PHP extensions need a toolchain w/ dynamic library"
endif endif
endif endif

View File

@ -389,7 +389,7 @@ else
ENABLE_DEBUG := --disable-debug ENABLE_DEBUG := --disable-debug
endif endif
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
SHARED_STATIC_LIBS_OPTS = --enable-static --disable-shared SHARED_STATIC_LIBS_OPTS = --enable-static --disable-shared
TARGET_CFLAGS += -static TARGET_CFLAGS += -static
TARGET_CXXFLAGS += -static TARGET_CXXFLAGS += -static

View File

@ -3,7 +3,7 @@ config BR2_PACKAGE_AGENTPP
select BR2_PACKAGE_SNMPPP select BR2_PACKAGE_SNMPPP
depends on BR2_INSTALL_LIBSTDCPP depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_HAS_THREADS # snmp++ depends on BR2_TOOLCHAIN_HAS_THREADS # snmp++
depends on !BR2_PREFER_STATIC_LIB # snmp++ depends on !BR2_STATIC_LIBS # snmp++
help help
AGENT++ is a set of C++ classes which provides a complete protocol AGENT++ is a set of C++ classes which provides a complete protocol
engine and dispatch table for the development of SNMP agents. engine and dispatch table for the development of SNMP agents.
@ -19,4 +19,4 @@ config BR2_PACKAGE_AGENTPP
comment "agent++ needs a toolchain w/ threads, C++, dynamic library" comment "agent++ needs a toolchain w/ threads, C++, dynamic library"
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
BR2_PREFER_STATIC_LIB BR2_STATIC_LIBS

View File

@ -15,7 +15,7 @@ AICCU_LFDLAGS = $(TARGET_LDFLAGS)
# aiccu forgets to link with gnutls' dependencies breaking the build when # aiccu forgets to link with gnutls' dependencies breaking the build when
# linking statically # linking statically
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
AICCU_LDFLAGS += $(shell $(PKG_CONFIG_HOST_BINARY) --static --libs gnutls) AICCU_LDFLAGS += $(shell $(PKG_CONFIG_HOST_BINARY) --static --libs gnutls)
endif endif

View File

@ -4,7 +4,7 @@ config BR2_PACKAGE_AIRCRACK_NG
depends on BR2_USE_MMU # uses fork() depends on BR2_USE_MMU # uses fork()
# libnl has issues when linking statically # libnl has issues when linking statically
# they need fixing in libnl itself # they need fixing in libnl itself
select BR2_PACKAGE_LIBNL if !BR2_PREFER_STATIC_LIB select BR2_PACKAGE_LIBNL if !BR2_STATIC_LIBS
select BR2_PACKAGE_OPENSSL select BR2_PACKAGE_OPENSSL
select BR2_PACKAGE_ZLIB select BR2_PACKAGE_ZLIB
depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_TOOLCHAIN_HAS_THREADS

View File

@ -14,10 +14,10 @@ AIRCRACK_NG_MAKE_OPTS = unstable=true
# Account for libpthread in static # Account for libpthread in static
AIRCRACK_NG_LDFLAGS = $(TARGET_LDFLAGS) \ AIRCRACK_NG_LDFLAGS = $(TARGET_LDFLAGS) \
$(if $(BR2_PREFER_STATIC_LIB),-lpthread -lz) $(if $(BR2_STATIC_LIBS),-lpthread -lz)
# libnl support has issues when building static # libnl support has issues when building static
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
AIRCRACK_NG_MAKE_OPTS += libnl=false AIRCRACK_NG_MAKE_OPTS += libnl=false
else else
AIRCRACK_NG_MAKE_OPTS += libnl=true AIRCRACK_NG_MAKE_OPTS += libnl=true
@ -27,7 +27,7 @@ endif
ifeq ($(BR2_PACKAGE_LIBPCAP),y) ifeq ($(BR2_PACKAGE_LIBPCAP),y)
AIRCRACK_NG_DEPENDENCIES += libpcap AIRCRACK_NG_DEPENDENCIES += libpcap
AIRCRACK_NG_MAKE_OPTS += HAVE_PCAP=yes \ AIRCRACK_NG_MAKE_OPTS += HAVE_PCAP=yes \
$(if $(BR2_PREFER_STATIC_LIB),LIBPCAP="-lpcap $(shell $(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs)") $(if $(BR2_STATIC_LIBS),LIBPCAP="-lpcap $(shell $(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs)")
else else
AIRCRACK_NG_MAKE_OPTS += HAVE_PCAP=no AIRCRACK_NG_MAKE_OPTS += HAVE_PCAP=no
endif endif
@ -42,7 +42,7 @@ endif
# Duplicate -lpthread, because it is also needed by sqlite # Duplicate -lpthread, because it is also needed by sqlite
ifeq ($(BR2_PACKAGE_SQLITE),y) ifeq ($(BR2_PACKAGE_SQLITE),y)
AIRCRACK_NG_DEPENDENCIES += sqlite AIRCRACK_NG_DEPENDENCIES += sqlite
AIRCRACK_NG_MAKE_OPTS += sqlite=true LIBSQL="-lsqlite3 $(if $(BR2_PREFER_STATIC_LIB),-lpthread)" AIRCRACK_NG_MAKE_OPTS += sqlite=true LIBSQL="-lsqlite3 $(if $(BR2_STATIC_LIBS),-lpthread)"
else else
AIRCRACK_NG_MAKE_OPTS += sqlite=false AIRCRACK_NG_MAKE_OPTS += sqlite=false
endif endif

View File

@ -18,7 +18,7 @@ ALSA_LIB_CONF_OPTS = --with-alsa-devdir=$(call qstrip,$(BR2_PACKAGE_ALSA_LIB_DEV
--without-versioned --without-versioned
# Can't build with static & shared at the same time (1.0.25+) # Can't build with static & shared at the same time (1.0.25+)
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
ALSA_LIB_CONF_OPTS += --enable-shared=no ALSA_LIB_CONF_OPTS += --enable-shared=no
else else
ALSA_LIB_CONF_OPTS += --enable-static=no ALSA_LIB_CONF_OPTS += --enable-static=no

View File

@ -13,9 +13,9 @@ AM335X_PRU_PACKAGE_INSTALL_STAGING = YES
# The default 'all' rule builds everything, when we just need the library # The default 'all' rule builds everything, when we just need the library
ifeq ($(BR2_ENABLE_DEBUG),y) ifeq ($(BR2_ENABLE_DEBUG),y)
AM335X_MAKE_TARGET = debug $(if $(BR2_PREFER_STATIC_LIB),,sodebug) AM335X_MAKE_TARGET = debug $(if $(BR2_STATIC_LIBS),,sodebug)
else else
AM335X_MAKE_TARGET = release $(if $(BR2_PREFER_STATIC_LIB),,sorelease) AM335X_MAKE_TARGET = release $(if $(BR2_STATIC_LIBS),,sorelease)
endif endif
define AM335X_PRU_PACKAGE_BUILD_CMDS define AM335X_PRU_PACKAGE_BUILD_CMDS
@ -44,7 +44,7 @@ define AM335X_PRU_PACKAGE_LN_DEBUG_STAGING_STATIC
endef endef
AM335X_PRU_PACKAGE_POST_INSTALL_STAGING_HOOKS += AM335X_PRU_PACKAGE_LN_DEBUG_STAGING_STATIC AM335X_PRU_PACKAGE_POST_INSTALL_STAGING_HOOKS += AM335X_PRU_PACKAGE_LN_DEBUG_STAGING_STATIC
ifeq ($(BR2_PREFER_STATIC_LIB),) ifeq ($(BR2_STATIC_LIBS),)
define AM335X_PRU_PACKAGE_LN_DEBUG_STAGING_SHARED define AM335X_PRU_PACKAGE_LN_DEBUG_STAGING_SHARED
ln -sf libprussdrvd.so $(STAGING_DIR)/usr/lib/libprussdrv.so ln -sf libprussdrvd.so $(STAGING_DIR)/usr/lib/libprussdrv.so

View File

@ -3,7 +3,7 @@ config BR2_PACKAGE_APR_UTIL
select BR2_PACKAGE_APR select BR2_PACKAGE_APR
select BR2_PACKAGE_EXPAT select BR2_PACKAGE_EXPAT
# apr really needs shared library support # apr really needs shared library support
depends on !BR2_PREFER_STATIC_LIB depends on !BR2_STATIC_LIBS
depends on BR2_USE_MMU # apr depends on BR2_USE_MMU # apr
help help
The utility library for the apache runtime project The utility library for the apache runtime project
@ -12,4 +12,4 @@ config BR2_PACKAGE_APR_UTIL
comment "apr-util needs a toolchain w/ dynamic library" comment "apr-util needs a toolchain w/ dynamic library"
depends on BR2_USE_MMU depends on BR2_USE_MMU
depends on BR2_PREFER_STATIC_LIB depends on BR2_STATIC_LIBS

View File

@ -1,7 +1,7 @@
config BR2_PACKAGE_APR config BR2_PACKAGE_APR
bool "apr" bool "apr"
# apr really needs shared library support # apr really needs shared library support
depends on !BR2_PREFER_STATIC_LIB depends on !BR2_STATIC_LIBS
depends on BR2_USE_MMU # fork() in apr_proc_fork() depends on BR2_USE_MMU # fork() in apr_proc_fork()
help help
The mission of the Apache Portable Runtime (APR) project is to create The mission of the Apache Portable Runtime (APR) project is to create
@ -12,4 +12,4 @@ config BR2_PACKAGE_APR
comment "apr needs a toolchain w/ dynamic library" comment "apr needs a toolchain w/ dynamic library"
depends on BR2_USE_MMU depends on BR2_USE_MMU
depends on BR2_PREFER_STATIC_LIB depends on BR2_STATIC_LIBS

View File

@ -3,7 +3,7 @@ config BR2_PACKAGE_AVAHI
# libdaemon uses fork() # libdaemon uses fork()
depends on BR2_USE_MMU depends on BR2_USE_MMU
depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_TOOLCHAIN_HAS_THREADS
depends on !BR2_PREFER_STATIC_LIB depends on !BR2_STATIC_LIBS
select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
help help
Avahi is a system which facilitates service Avahi is a system which facilitates service

View File

@ -7,7 +7,7 @@ config BR2_PACKAGE_AVRDUDE
depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_LARGEFILE # elfutils depends on BR2_LARGEFILE # elfutils
depends on BR2_USE_WCHAR # elfutils depends on BR2_USE_WCHAR # elfutils
depends on !BR2_PREFER_STATIC_LIB # elfutils depends on !BR2_STATIC_LIBS # elfutils
depends on !BR2_avr32 # elfutils depends on !BR2_avr32 # elfutils
depends on !BR2_bfin # elfutils depends on !BR2_bfin # elfutils
help help
@ -17,6 +17,6 @@ config BR2_PACKAGE_AVRDUDE
https://github.com/kcuzner/avrdude https://github.com/kcuzner/avrdude
comment "avrdude needs a toolchain w/ threads, largefile, wchar, dynamic library" comment "avrdude needs a toolchain w/ threads, largefile, wchar, dynamic library"
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_LARGEFILE || !BR2_USE_WCHAR || BR2_PREFER_STATIC_LIB depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_LARGEFILE || !BR2_USE_WCHAR || BR2_STATIC_LIBS
depends on !BR2_avr32 depends on !BR2_avr32
depends on !BR2_bfin depends on !BR2_bfin

View File

@ -26,7 +26,7 @@ BASH_CONF_ENV += \
BASH_MAKE = $(MAKE1) BASH_MAKE = $(MAKE1)
# The static build needs some trickery # The static build needs some trickery
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
BASH_CONF_OPTS += --enable-static-link --without-bash-malloc BASH_CONF_OPTS += --enable-static-link --without-bash-malloc
# bash wants to redefine the getenv() function. To check whether this is # bash wants to redefine the getenv() function. To check whether this is
# possible, AC_TRY_RUN is used which is not possible in # possible, AC_TRY_RUN is used which is not possible in

View File

@ -2,7 +2,7 @@ config BR2_PACKAGE_BELLAGIO
bool "bellagio" bool "bellagio"
depends on BR2_INSTALL_LIBSTDCPP depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_TOOLCHAIN_HAS_THREADS
depends on !BR2_PREFER_STATIC_LIB depends on !BR2_STATIC_LIBS
select BR2_PACKAGE_HAS_LIBOPENMAX select BR2_PACKAGE_HAS_LIBOPENMAX
help help
Bellagio is an opensource implementation of the Bellagio is an opensource implementation of the
@ -25,4 +25,4 @@ config BR2_PACKAGE_PROVIDES_LIBOPENMAX
endif endif
comment "bellagio needs a toolchain w/ C++, threads, dynamic library" comment "bellagio needs a toolchain w/ C++, threads, dynamic library"
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || BR2_PREFER_STATIC_LIB depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS

View File

@ -3,7 +3,7 @@ config BR2_PACKAGE_BIND
depends on BR2_INET_IPV6 depends on BR2_INET_IPV6
depends on BR2_LARGEFILE depends on BR2_LARGEFILE
depends on BR2_USE_MMU # fork() depends on BR2_USE_MMU # fork()
depends on !BR2_PREFER_STATIC_LIB depends on !BR2_STATIC_LIBS
help help
BIND (Berkeley Internet Name Domain) is an implementation of BIND (Berkeley Internet Name Domain) is an implementation of
the Domain Name System (DNS) protocols and provides an openly the Domain Name System (DNS) protocols and provides an openly
@ -41,4 +41,4 @@ endif
comment "bind needs a toolchain w/ largefile, IPv6, dynamic library" comment "bind needs a toolchain w/ largefile, IPv6, dynamic library"
depends on BR2_USE_MMU depends on BR2_USE_MMU
depends on !BR2_LARGEFILE || !BR2_INET_IPV6 || BR2_PREFER_STATIC_LIB depends on !BR2_LARGEFILE || !BR2_INET_IPV6 || BR2_STATIC_LIBS

View File

@ -5,7 +5,7 @@ config BR2_PACKAGE_BLUEZ5_UTILS
depends on BR2_TOOLCHAIN_HAS_THREADS # dbus, libglib2 depends on BR2_TOOLCHAIN_HAS_THREADS # dbus, libglib2
depends on BR2_USE_MMU # dbus depends on BR2_USE_MMU # dbus
depends on BR2_INET_IPV6 depends on BR2_INET_IPV6
depends on !BR2_PREFER_STATIC_LIB # uses dlfcn depends on !BR2_STATIC_LIBS # uses dlfcn
depends on !BR2_PACKAGE_BLUEZ_UTILS # conflicts with 4.x version depends on !BR2_PACKAGE_BLUEZ_UTILS # conflicts with 4.x version
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4 depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
select BR2_PACKAGE_DBUS select BR2_PACKAGE_DBUS
@ -66,7 +66,7 @@ endif
comment "bluez5-utils needs a toolchain w/ wchar, threads, IPv6, headers >= 3.4, dynamic library" comment "bluez5-utils needs a toolchain w/ wchar, threads, IPv6, headers >= 3.4, dynamic library"
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \ depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
!BR2_INET_IPV6 || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4 || \ !BR2_INET_IPV6 || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4 || \
BR2_PREFER_STATIC_LIB BR2_STATIC_LIBS
depends on BR2_USE_MMU depends on BR2_USE_MMU
comment "bluez5-utils conflicts with older bluez-utils version" comment "bluez5-utils conflicts with older bluez-utils version"

View File

@ -1,7 +1,7 @@
config BR2_PACKAGE_BLUEZ_UTILS config BR2_PACKAGE_BLUEZ_UTILS
bool "bluez-utils" bool "bluez-utils"
depends on !BR2_avr32 depends on !BR2_avr32
depends on !BR2_PREFER_STATIC_LIB depends on !BR2_STATIC_LIBS
depends on BR2_USE_WCHAR # libglib2 depends on BR2_USE_WCHAR # libglib2
depends on BR2_TOOLCHAIN_HAS_THREADS # dbus, alsa-lib, libglib2 depends on BR2_TOOLCHAIN_HAS_THREADS # dbus, alsa-lib, libglib2
depends on BR2_USE_MMU # dbus, libglib2 depends on BR2_USE_MMU # dbus, libglib2
@ -48,4 +48,4 @@ endif
comment "bluez-utils needs a toolchain w/ wchar, threads, dynamic library" comment "bluez-utils needs a toolchain w/ wchar, threads, dynamic library"
depends on !BR2_avr32 && BR2_USE_MMU depends on !BR2_avr32 && BR2_USE_MMU
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || BR2_PREFER_STATIC_LIB depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS

View File

@ -13,7 +13,7 @@ BMON_LICENSE_FILES = LICENSE
BMON_AUTORECONF = YES BMON_AUTORECONF = YES
# link dynamically unless explicitly requested otherwise # link dynamically unless explicitly requested otherwise
ifeq ($(BR2_PREFER_STATIC_LIB),) ifeq ($(BR2_STATIC_LIBS),)
BMON_CONF_OPTS += --disable-static BMON_CONF_OPTS += --disable-static
else else
# forgets to explicitly link with pthread for libnl # forgets to explicitly link with pthread for libnl

View File

@ -92,8 +92,8 @@ BOOST_OPTS += toolset=gcc \
threading=multi \ threading=multi \
abi=$(BOOST_ABI) \ abi=$(BOOST_ABI) \
variant=$(if $(BR2_ENABLE_DEBUG),debug,release) \ variant=$(if $(BR2_ENABLE_DEBUG),debug,release) \
link=$(if $(BR2_PREFER_STATIC_LIB),static,shared) \ link=$(if $(BR2_STATIC_LIBS),static,shared) \
runtime-link=$(if $(BR2_PREFER_STATIC_LIB),static,shared) runtime-link=$(if $(BR2_STATIC_LIBS),static,shared)
ifeq ($(BR2_PACKAGE_BOOST_LOCALE),y) ifeq ($(BR2_PACKAGE_BOOST_LOCALE),y)
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y) ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)

View File

@ -19,7 +19,7 @@ BOTAN_CONF_OPTS = \
--cc=gcc \ --cc=gcc \
--cc-bin="$(TARGET_CXX)" --cc-bin="$(TARGET_CXX)"
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
BOTAN_CONF_OPTS += --disable-shared --no-autoload BOTAN_CONF_OPTS += --disable-shared --no-autoload
endif endif

View File

@ -14,7 +14,7 @@ BTRFS_PROGS_LICENSE = GPLv2
BTRFS_PROGS_LICENSE_FILES = COPYING BTRFS_PROGS_LICENSE_FILES = COPYING
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
BTRFS_PROGS_MAKE_TARGET = static BTRFS_PROGS_MAKE_TARGET = static
BTRFS_PROGS_MAKE_INSTALL_TARGET = install-static BTRFS_PROGS_MAKE_INSTALL_TARGET = install-static
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y) ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)

View File

@ -11,7 +11,7 @@ BUSTLE_LICENSE_FILES = LICENSE
BUSTLE_DEPENDENCIES = libglib2 libpcap host-pkgconf BUSTLE_DEPENDENCIES = libglib2 libpcap host-pkgconf
BUSTLE_PCAP_FLAGS = "-lpcap" BUSTLE_PCAP_FLAGS = "-lpcap"
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
BUSTLE_PCAP_FLAGS += $(shell $(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs) BUSTLE_PCAP_FLAGS += $(shell $(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs)
endif endif

View File

@ -118,7 +118,7 @@ endef
endif endif
# If we're using static libs do the same for busybox # If we're using static libs do the same for busybox
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
define BUSYBOX_PREFER_STATIC define BUSYBOX_PREFER_STATIC
$(call KCONFIG_ENABLE_OPT,CONFIG_STATIC,$(BUSYBOX_BUILD_CONFIG)) $(call KCONFIG_ENABLE_OPT,CONFIG_STATIC,$(BUSYBOX_BUILD_CONFIG))
endef endef

View File

@ -10,7 +10,7 @@ BZIP2_INSTALL_STAGING = YES
BZIP2_LICENSE = bzip2 license BZIP2_LICENSE = bzip2 license
BZIP2_LICENSE_FILES = LICENSE BZIP2_LICENSE_FILES = LICENSE
ifeq ($(BR2_PREFER_STATIC_LIB),) ifeq ($(BR2_STATIC_LIBS),)
define BZIP2_BUILD_SHARED_CMDS define BZIP2_BUILD_SHARED_CMDS
$(TARGET_MAKE_ENV) $(TARGET_MAKE_ENV)
$(MAKE) -C $(@D) -f Makefile-libbz2_so $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) -f Makefile-libbz2_so $(TARGET_CONFIGURE_OPTS)
@ -23,7 +23,7 @@ define BZIP2_BUILD_CMDS
$(BZIP2_BUILD_SHARED_CMDS) $(BZIP2_BUILD_SHARED_CMDS)
endef endef
ifeq ($(BR2_PREFER_STATIC_LIB),) ifeq ($(BR2_STATIC_LIBS),)
define BZIP2_INSTALL_STAGING_SHARED_CMDS define BZIP2_INSTALL_STAGING_SHARED_CMDS
$(TARGET_MAKE_ENV) $(MAKE) \ $(TARGET_MAKE_ENV) $(MAKE) \
-f Makefile-libbz2_so PREFIX=$(STAGING_DIR)/usr -C $(@D) install -f Makefile-libbz2_so PREFIX=$(STAGING_DIR)/usr -C $(@D) install
@ -36,7 +36,7 @@ define BZIP2_INSTALL_STAGING_CMDS
$(BZIP2_INSTALL_STAGING_SHARED_CMDS) $(BZIP2_INSTALL_STAGING_SHARED_CMDS)
endef endef
ifeq ($(BR2_PREFER_STATIC_LIB),) ifeq ($(BR2_STATIC_LIBS),)
define BZIP2_INSTALL_TARGET_SHARED_CMDS define BZIP2_INSTALL_TARGET_SHARED_CMDS
$(TARGET_MAKE_ENV) $(MAKE) \ $(TARGET_MAKE_ENV) $(MAKE) \
-f Makefile-libbz2_so PREFIX=$(TARGET_DIR)/usr -C $(@D) install -f Makefile-libbz2_so PREFIX=$(TARGET_DIR)/usr -C $(@D) install

View File

@ -4,13 +4,13 @@ config BR2_PACKAGE_CANFESTIVAL_ARCH_SUPPORTS
comment "canfestival needs a toolchain w/ threads and dynamic library" comment "canfestival needs a toolchain w/ threads and dynamic library"
depends on BR2_PACKAGE_CANFESTIVAL_ARCH_SUPPORTS depends on BR2_PACKAGE_CANFESTIVAL_ARCH_SUPPORTS
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_PREFER_STATIC_LIB depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
config BR2_PACKAGE_CANFESTIVAL config BR2_PACKAGE_CANFESTIVAL
bool "canfestival" bool "canfestival"
depends on BR2_PACKAGE_CANFESTIVAL_ARCH_SUPPORTS depends on BR2_PACKAGE_CANFESTIVAL_ARCH_SUPPORTS
depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_TOOLCHAIN_HAS_THREADS
depends on !BR2_PREFER_STATIC_LIB depends on !BR2_STATIC_LIBS
help help
CanFestival is an OpenSource CANOpen framework, licensed under CanFestival is an OpenSource CANOpen framework, licensed under
LGPLv2.1 and GPLv2 for some drivers (virtual_kernel, lincan and LGPLv2.1 and GPLv2 for some drivers (virtual_kernel, lincan and

View File

@ -4,7 +4,7 @@ config BR2_PACKAGE_CCID
select BR2_PACKAGE_LIBUSB select BR2_PACKAGE_LIBUSB
depends on BR2_TOOLCHAIN_HAS_THREADS # libusb depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
depends on BR2_USE_MMU # pcsc-lite depends on BR2_USE_MMU # pcsc-lite
depends on !BR2_PREFER_STATIC_LIB # pcsc-lite depends on !BR2_STATIC_LIBS # pcsc-lite
help help
PC/SC driver for USB CCID smart card readers PC/SC driver for USB CCID smart card readers
@ -12,4 +12,4 @@ config BR2_PACKAGE_CCID
comment "ccid needs a toolchain w/ threads, dynamic library" comment "ccid needs a toolchain w/ threads, dynamic library"
depends on BR2_USE_MMU depends on BR2_USE_MMU
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_PREFER_STATIC_LIB depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS

View File

@ -1,11 +1,11 @@
comment "cegui06 needs a toolchain w/ C++, threads, dynamic library" comment "cegui06 needs a toolchain w/ C++, threads, dynamic library"
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP || BR2_PREFER_STATIC_LIB depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS
config BR2_PACKAGE_CEGUI06 config BR2_PACKAGE_CEGUI06
bool "cegui06" bool "cegui06"
depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_INSTALL_LIBSTDCPP depends on BR2_INSTALL_LIBSTDCPP
depends on !BR2_PREFER_STATIC_LIB depends on !BR2_STATIC_LIBS
select BR2_PACKAGE_EXPAT select BR2_PACKAGE_EXPAT
select BR2_PACKAGE_FREETYPE select BR2_PACKAGE_FREETYPE
select BR2_PACKAGE_PCRE select BR2_PACKAGE_PCRE

View File

@ -10,7 +10,7 @@ CIFS_UTILS_SITE = http://ftp.samba.org/pub/linux-cifs/cifs-utils
CIFS_UTILS_LICENSE = GPLv3+ CIFS_UTILS_LICENSE = GPLv3+
CIFS_UTILS_LICENSE_FILES = COPYING CIFS_UTILS_LICENSE_FILES = COPYING
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
CIFS_UTILS_CONF_OPTS += --disable-pie CIFS_UTILS_CONF_OPTS += --disable-pie
endif endif

View File

@ -1,7 +1,7 @@
config BR2_PACKAGE_CJSON config BR2_PACKAGE_CJSON
bool "cJSON" bool "cJSON"
# For static build with cJSON.c directly see README # For static build with cJSON.c directly see README
depends on !BR2_PREFER_STATIC_LIB depends on !BR2_STATIC_LIBS
help help
An ultra-lightweight, portable, single-file, simple-as-can-be ANSI-C An ultra-lightweight, portable, single-file, simple-as-can-be ANSI-C
compliant JSON parser, under MIT license. compliant JSON parser, under MIT license.

View File

@ -4,7 +4,7 @@ config BR2_PACKAGE_COLLECTD
depends on BR2_USE_MMU depends on BR2_USE_MMU
depends on BR2_INET_IPV6 depends on BR2_INET_IPV6
depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_TOOLCHAIN_HAS_THREADS
depends on !BR2_PREFER_STATIC_LIB depends on !BR2_STATIC_LIBS
help help
collectd is a daemon which collects system performance collectd is a daemon which collects system performance
statistics periodically and provides mechanisms to store statistics periodically and provides mechanisms to store
@ -59,7 +59,7 @@ config BR2_PACKAGE_COLLECTD_LOGFILE
config BR2_PACKAGE_COLLECTD_NOTIFY_EMAIL config BR2_PACKAGE_COLLECTD_NOTIFY_EMAIL
bool "notify_email" bool "notify_email"
depends on !BR2_PREFER_STATIC_LIB # libesmtp depends on !BR2_STATIC_LIBS # libesmtp
select BR2_PACKAGE_LIBESMTP select BR2_PACKAGE_LIBESMTP
select BR2_PACKAGE_OPENSSL select BR2_PACKAGE_OPENSSL
help help
@ -67,7 +67,7 @@ config BR2_PACKAGE_COLLECTD_NOTIFY_EMAIL
configured recipients. configured recipients.
comment "notify_email needs a toolchain w/ dynamic library" comment "notify_email needs a toolchain w/ dynamic library"
depends on BR2_PREFER_STATIC_LIB depends on BR2_STATIC_LIBS
config BR2_PACKAGE_COLLECTD_SYSLOG config BR2_PACKAGE_COLLECTD_SYSLOG
bool "syslog" bool "syslog"
@ -454,5 +454,5 @@ endmenu
endif endif
comment "collectd needs a toolchain w/ IPv6, threads, dynamic library" comment "collectd needs a toolchain w/ IPv6, threads, dynamic library"
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INET_IPV6 || BR2_PREFER_STATIC_LIB depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INET_IPV6 || BR2_STATIC_LIBS
depends on BR2_USE_MMU depends on BR2_USE_MMU

View File

@ -8,7 +8,7 @@ config BR2_PACKAGE_CONNMAN
depends on BR2_INET_IPV6 depends on BR2_INET_IPV6
depends on BR2_TOOLCHAIN_HAS_THREADS # dbus, libglib2 depends on BR2_TOOLCHAIN_HAS_THREADS # dbus, libglib2
depends on BR2_USE_MMU # dbus, libglib2 depends on BR2_USE_MMU # dbus, libglib2
depends on !BR2_PREFER_STATIC_LIB # needs dlopen() depends on !BR2_STATIC_LIBS # needs dlopen()
help help
The Connection Manager (ConnMan) project provides a daemon The Connection Manager (ConnMan) project provides a daemon
for managing internet connections within embedded devices for managing internet connections within embedded devices
@ -68,4 +68,4 @@ endif # BR2_PACKAGE_CONNMAN
comment "connman needs a toolchain w/ IPv6, wchar, threads, resolver, dynamic library" comment "connman needs a toolchain w/ IPv6, wchar, threads, resolver, dynamic library"
depends on BR2_USE_MMU && !BR2_avr32 depends on BR2_USE_MMU && !BR2_avr32
depends on !BR2_USE_WCHAR || !BR2_INET_IPV6 || !BR2_TOOLCHAIN_HAS_THREADS || BR2_PREFER_STATIC_LIB depends on !BR2_USE_WCHAR || !BR2_INET_IPV6 || !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS

View File

@ -5,7 +5,7 @@ config BR2_PACKAGE_CPPCMS
select BR2_PACKAGE_LIBGCRYPT select BR2_PACKAGE_LIBGCRYPT
depends on BR2_INSTALL_LIBSTDCPP depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
depends on !BR2_PREFER_STATIC_LIB # dlopen() depends on !BR2_STATIC_LIBS # dlopen()
depends on BR2_USE_WCHAR depends on BR2_USE_WCHAR
help help
CppCMS is a Free High Performance Web Development Framework CppCMS is a Free High Performance Web Development Framework
@ -36,4 +36,4 @@ endif
comment "cppcms needs a toolchain w/ C++, NPTL, wchar, dynamic library" comment "cppcms needs a toolchain w/ C++, NPTL, wchar, dynamic library"
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \ depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
!BR2_USE_WCHAR || BR2_PREFER_STATIC_LIB !BR2_USE_WCHAR || BR2_STATIC_LIBS

View File

@ -1,7 +1,7 @@
config BR2_PACKAGE_CPPDB config BR2_PACKAGE_CPPDB
bool "cppdb" bool "cppdb"
# dlfcn.h # dlfcn.h
depends on !BR2_PREFER_STATIC_LIB depends on !BR2_STATIC_LIBS
depends on BR2_INSTALL_LIBSTDCPP depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_TOOLCHAIN_HAS_THREADS
# Can be built without them but it's useless # Can be built without them but it's useless
@ -16,4 +16,4 @@ config BR2_PACKAGE_CPPDB
comment "cppdb needs a toolchain w/ C++, threads, dynamic library" comment "cppdb needs a toolchain w/ C++, threads, dynamic library"
depends on BR2_PACKAGE_MYSQL || BR2_PACKAGE_POSTGRESQL || BR2_PACKAGE_SQLITE depends on BR2_PACKAGE_MYSQL || BR2_PACKAGE_POSTGRESQL || BR2_PACKAGE_SQLITE
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
BR2_PREFER_STATIC_LIB BR2_STATIC_LIBS

View File

@ -2,7 +2,7 @@ config BR2_PACKAGE_CPPUNIT
bool "cppunit" bool "cppunit"
depends on BR2_INSTALL_LIBSTDCPP depends on BR2_INSTALL_LIBSTDCPP
# currently the static situation is not correctly detected. # currently the static situation is not correctly detected.
depends on !BR2_PREFER_STATIC_LIB depends on !BR2_STATIC_LIBS
help help
CppUnit is the C++ port of the famous JUnit framework for CppUnit is the C++ port of the famous JUnit framework for
unit testing. Test output is in XML or text format for unit testing. Test output is in XML or text format for
@ -11,4 +11,4 @@ config BR2_PACKAGE_CPPUNIT
http://www.freedesktop.org/wiki/Software/cppunit/ http://www.freedesktop.org/wiki/Software/cppunit/
comment "cppunit needs a toolchain w/ C++, dynamic library" comment "cppunit needs a toolchain w/ C++, dynamic library"
depends on !BR2_INSTALL_LIBSTDCPP || BR2_PREFER_STATIC_LIB depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS

View File

@ -1,7 +1,7 @@
config BR2_PACKAGE_CRDA config BR2_PACKAGE_CRDA
bool "crda" bool "crda"
depends on BR2_TOOLCHAIN_HAS_THREADS # libnl depends on BR2_TOOLCHAIN_HAS_THREADS # libnl
depends on !BR2_PREFER_STATIC_LIB depends on !BR2_STATIC_LIBS
select BR2_PACKAGE_LIBGCRYPT select BR2_PACKAGE_LIBGCRYPT
select BR2_PACKAGE_LIBNL select BR2_PACKAGE_LIBNL
# regdb is a runtime dependency # regdb is a runtime dependency
@ -20,6 +20,6 @@ config BR2_PACKAGE_CRDA
http://linuxwireless.org/en/developers/Regulatory/CRDA http://linuxwireless.org/en/developers/Regulatory/CRDA
comment "crda needs a toolchain w/ threads, dynamic library" comment "crda needs a toolchain w/ threads, dynamic library"
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_PREFER_STATIC_LIB depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305 depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305
depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201405 depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201405

View File

@ -18,7 +18,7 @@ CRDA_LICENSE_FILES = LICENSE
# #
# libgcrypt needs -lgpg-error if linking statically, which is correctly # libgcrypt needs -lgpg-error if linking statically, which is correctly
# set by the libgcrypt-config script (and in the right order). # set by the libgcrypt-config script (and in the right order).
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
CRDA_NLLIBS += -lnl-3 -lm -lpthread CRDA_NLLIBS += -lnl-3 -lm -lpthread
CRDA_LDLIBS += `$(STAGING_DIR)/usr/bin/libgcrypt-config --libs` CRDA_LDLIBS += `$(STAGING_DIR)/usr/bin/libgcrypt-config --libs`
endif endif

View File

@ -8,7 +8,7 @@ config BR2_PACKAGE_CRYPTSETUP
depends on BR2_LARGEFILE # lvm2, util-linux depends on BR2_LARGEFILE # lvm2, util-linux
depends on BR2_TOOLCHAIN_HAS_THREADS # lvm2 depends on BR2_TOOLCHAIN_HAS_THREADS # lvm2
depends on BR2_USE_MMU # lvm2, e2fsprogs depends on BR2_USE_MMU # lvm2, e2fsprogs
depends on !BR2_PREFER_STATIC_LIB # lvm2 depends on !BR2_STATIC_LIBS # lvm2
depends on BR2_USE_WCHAR # util-linux depends on BR2_USE_WCHAR # util-linux
help help
This tool helps manipulate dm-crypt and luks partitions for This tool helps manipulate dm-crypt and luks partitions for
@ -19,4 +19,4 @@ config BR2_PACKAGE_CRYPTSETUP
comment "cryptsetup needs a toolchain w/ largefile, wchar, threads, dynamic library" comment "cryptsetup needs a toolchain w/ largefile, wchar, threads, dynamic library"
depends on BR2_USE_MMU depends on BR2_USE_MMU
depends on !BR2_LARGEFILE || !BR2_USE_WCHAR || \ depends on !BR2_LARGEFILE || !BR2_USE_WCHAR || \
BR2_PREFER_STATIC_LIB || !BR2_TOOLCHAIN_HAS_THREADS BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS

View File

@ -10,7 +10,7 @@ config BR2_PACKAGE_CURLFTPFS
depends on BR2_USE_WCHAR # glib2 depends on BR2_USE_WCHAR # glib2
depends on BR2_TOOLCHAIN_HAS_THREADS # libfuse, glib2 depends on BR2_TOOLCHAIN_HAS_THREADS # libfuse, glib2
depends on BR2_USE_MMU # libfuse, glib2 depends on BR2_USE_MMU # libfuse, glib2
depends on !BR2_PREFER_STATIC_LIB # libfuse depends on !BR2_STATIC_LIBS # libfuse
help help
CurlFtpFS is a filesystem for accessing FTP hosts based on FUSE CurlFtpFS is a filesystem for accessing FTP hosts based on FUSE
and libcurl. and libcurl.
@ -19,4 +19,4 @@ config BR2_PACKAGE_CURLFTPFS
comment "curlftpfs needs a toolchain w/ largefile, wchar, threads, dynamic library" comment "curlftpfs needs a toolchain w/ largefile, wchar, threads, dynamic library"
depends on BR2_USE_MMU depends on BR2_USE_MMU
depends on !BR2_LARGEFILE || !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || BR2_PREFER_STATIC_LIB depends on !BR2_LARGEFILE || !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS

View File

@ -1,7 +1,7 @@
config BR2_PACKAGE_CWIID config BR2_PACKAGE_CWIID
bool "cwiid" bool "cwiid"
depends on !BR2_avr32 # bluez_utils depends on !BR2_avr32 # bluez_utils
depends on !BR2_PREFER_STATIC_LIB # bluez_utils depends on !BR2_STATIC_LIBS # bluez_utils
depends on BR2_USE_WCHAR # bluez_utils -> libglib2 depends on BR2_USE_WCHAR # bluez_utils -> libglib2
depends on BR2_TOOLCHAIN_HAS_THREADS # bluez_utils -> dbus, alsa-lib, libglib2 depends on BR2_TOOLCHAIN_HAS_THREADS # bluez_utils -> dbus, alsa-lib, libglib2
depends on BR2_USE_MMU # bluez_utils -> dbus, libglib2 depends on BR2_USE_MMU # bluez_utils -> dbus, libglib2

View File

@ -18,7 +18,7 @@ CZMQ_LICENSE_FILES = LICENSE
# host-python, so disable asciidoc entirely. # host-python, so disable asciidoc entirely.
CZMQ_CONF_ENV = ac_cv_prog_czmq_have_asciidoc=no CZMQ_CONF_ENV = ac_cv_prog_czmq_have_asciidoc=no
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
CZMQ_CONF_OPTS += LIBS="-lstdc++ -lm" CZMQ_CONF_OPTS += LIBS="-lstdc++ -lm"
endif endif

View File

@ -34,7 +34,7 @@ DBUS_CONF_OPTS = --with-dbus-user=dbus \
--with-system-socket=/var/run/dbus/system_bus_socket \ --with-system-socket=/var/run/dbus/system_bus_socket \
--with-system-pid-file=/var/run/messagebus.pid --with-system-pid-file=/var/run/messagebus.pid
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
DBUS_CONF_OPTS += LIBS='-pthread' DBUS_CONF_OPTS += LIBS='-pthread'
endif endif

View File

@ -14,7 +14,7 @@ ifeq ($(BR2_INET_IPV6),)
DHCPCD_CONFIG_OPTS += --disable-ipv6 DHCPCD_CONFIG_OPTS += --disable-ipv6
endif endif
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
DHCPCD_CONFIG_OPTS += --enable-static DHCPCD_CONFIG_OPTS += --enable-static
endif endif

View File

@ -11,7 +11,7 @@ DHCPDUMP_LICENSE = BSD-2c
DHCPDUMP_LICENSE_FILES = LICENSE DHCPDUMP_LICENSE_FILES = LICENSE
DHCPDUMP_LIBS = -lpcap DHCPDUMP_LIBS = -lpcap
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
DHCPDUMP_LIBS += $(shell $(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs) DHCPDUMP_LIBS += $(shell $(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs)
endif endif

View File

@ -97,12 +97,12 @@ config BR2_PACKAGE_DIRECTFB_SERIALMOUSE
config BR2_PACKAGE_DIRECTFB_TSLIB config BR2_PACKAGE_DIRECTFB_TSLIB
bool "enable touchscreen support" bool "enable touchscreen support"
depends on !BR2_PREFER_STATIC_LIB # tslib depends on !BR2_STATIC_LIBS # tslib
default y default y
select BR2_PACKAGE_TSLIB select BR2_PACKAGE_TSLIB
comment "touchscreen support needs a toolchain w/ dynamic library" comment "touchscreen support needs a toolchain w/ dynamic library"
depends on BR2_PREFER_STATIC_LIB depends on BR2_STATIC_LIBS
config BR2_PACKAGE_DIRECTFB_GIF config BR2_PACKAGE_DIRECTFB_GIF
bool "enable GIF support" bool "enable GIF support"
@ -111,10 +111,10 @@ config BR2_PACKAGE_DIRECTFB_GIF
config BR2_PACKAGE_DIRECTFB_IMLIB2 config BR2_PACKAGE_DIRECTFB_IMLIB2
bool "enable IMLIB2 support" bool "enable IMLIB2 support"
select BR2_PACKAGE_IMLIB2 select BR2_PACKAGE_IMLIB2
depends on !BR2_PREFER_STATIC_LIB depends on !BR2_STATIC_LIBS
comment "imlib2 support needs a toolchain w/ dynamic library" comment "imlib2 support needs a toolchain w/ dynamic library"
depends on BR2_PREFER_STATIC_LIB depends on BR2_STATIC_LIBS
config BR2_PACKAGE_DIRECTFB_JPEG config BR2_PACKAGE_DIRECTFB_JPEG
bool "enable JPEG support" bool "enable JPEG support"

View File

@ -26,7 +26,7 @@ DIRECTFB_CONF_OPTS = \
--disable-video4linux2 \ --disable-video4linux2 \
--without-tools --without-tools
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
DIRECTFB_CONF_OPTS += --disable-dynload DIRECTFB_CONF_OPTS += --disable-dynload
endif endif

View File

@ -3,7 +3,7 @@ config BR2_PACKAGE_DMRAID
depends on BR2_LARGEFILE depends on BR2_LARGEFILE
depends on BR2_TOOLCHAIN_HAS_THREADS # lvm2 depends on BR2_TOOLCHAIN_HAS_THREADS # lvm2
depends on BR2_USE_MMU # lvm2 depends on BR2_USE_MMU # lvm2
depends on !BR2_PREFER_STATIC_LIB # lvm2 depends on !BR2_STATIC_LIBS # lvm2
select BR2_PACKAGE_LVM2 select BR2_PACKAGE_LVM2
help help
dmraid discovers, activates, deactivates and displays properties dmraid discovers, activates, deactivates and displays properties
@ -14,5 +14,5 @@ config BR2_PACKAGE_DMRAID
comment "dmraid needs a toolchain w/ largefile, threads, dynamic library" comment "dmraid needs a toolchain w/ largefile, threads, dynamic library"
depends on BR2_USE_MMU depends on BR2_USE_MMU
depends on !BR2_LARGEFILE || BR2_PREFER_STATIC_LIB || \ depends on !BR2_LARGEFILE || BR2_STATIC_LIBS || \
!BR2_TOOLCHAIN_HAS_THREADS !BR2_TOOLCHAIN_HAS_THREADS

View File

@ -25,7 +25,7 @@ endif
ifeq ($(BR2_PACKAGE_DNSMASQ_DNSSEC),y) ifeq ($(BR2_PACKAGE_DNSMASQ_DNSSEC),y)
DNSMASQ_DEPENDENCIES += gmp nettle DNSMASQ_DEPENDENCIES += gmp nettle
DNSMASQ_COPTS += -DHAVE_DNSSEC DNSMASQ_COPTS += -DHAVE_DNSSEC
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
DNSMASQ_COPTS += -DHAVE_DNSSEC_STATIC DNSMASQ_COPTS += -DHAVE_DNSSEC_STATIC
endif endif
endif endif
@ -57,7 +57,7 @@ ifeq ($(BR2_PACKAGE_DNSMASQ_LUA),y)
DNSMASQ_DEPENDENCIES += lua DNSMASQ_DEPENDENCIES += lua
# liblua uses dlopen when dynamically linked # liblua uses dlopen when dynamically linked
ifneq ($(BR2_PREFER_STATIC_LIB),y) ifneq ($(BR2_STATIC_LIBS),y)
DNSMASQ_MAKE_OPTS += LIBS+="-ldl" DNSMASQ_MAKE_OPTS += LIBS+="-ldl"
endif endif

View File

@ -14,7 +14,7 @@ DROPBEAR_MAKE = $(MAKE) MULTI=1 SCPPROGRESS=1 \
DROPBEAR_LICENSE = MIT, BSD-2c-like, BSD-2c DROPBEAR_LICENSE = MIT, BSD-2c-like, BSD-2c
DROPBEAR_LICENSE_FILES = LICENSE DROPBEAR_LICENSE_FILES = LICENSE
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
DROPBEAR_MAKE += STATIC=1 DROPBEAR_MAKE += STATIC=1
endif endif

View File

@ -1,6 +1,6 @@
config BR2_PACKAGE_DTC config BR2_PACKAGE_DTC
bool "dtc (libfdt)" bool "dtc (libfdt)"
depends on !BR2_PREFER_STATIC_LIB depends on !BR2_STATIC_LIBS
help help
The Device Tree Compiler, dtc, takes as input a device-tree in The Device Tree Compiler, dtc, takes as input a device-tree in
a given format and outputs a device-tree in another format. a given format and outputs a device-tree in another format.
@ -34,4 +34,4 @@ comment "dtdiff will not be installed: it requires bash"
endif endif
comment "dtc needs a toolchain w/ dynamic library" comment "dtc needs a toolchain w/ dynamic library"
depends on BR2_PREFER_STATIC_LIB depends on BR2_STATIC_LIBS

View File

@ -15,7 +15,7 @@ DVB_APPS_DEPENDENCIES = libiconv
DVB_APPS_LDLIBS += -liconv DVB_APPS_LDLIBS += -liconv
endif endif
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
DVB_APPS_MAKE_OPTS += static=1 DVB_APPS_MAKE_OPTS += static=1
endif endif

View File

@ -12,7 +12,7 @@ E2FSPROGS_INSTALL_STAGING = YES
E2FSPROGS_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) install-libs E2FSPROGS_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) install-libs
E2FSPROGS_CONF_OPTS = \ E2FSPROGS_CONF_OPTS = \
$(if $(BR2_PREFER_STATIC_LIB),,--enable-elf-shlibs) \ $(if $(BR2_STATIC_LIBS),,--enable-elf-shlibs) \
$(if $(BR2_PACKAGE_E2FSPROGS_DEBUGFS),,--disable-debugfs) \ $(if $(BR2_PACKAGE_E2FSPROGS_DEBUGFS),,--disable-debugfs) \
$(if $(BR2_PACKAGE_E2FSPROGS_E2IMAGE),,--disable-imager) \ $(if $(BR2_PACKAGE_E2FSPROGS_E2IMAGE),,--disable-imager) \
$(if $(BR2_PACKAGE_E2FSPROGS_E4DEFRAG),,--disable-defrag) \ $(if $(BR2_PACKAGE_E2FSPROGS_E4DEFRAG),,--disable-defrag) \

View File

@ -9,7 +9,7 @@ EBTABLES_SOURCE = ebtables-v$(EBTABLES_VERSION).tar.gz
EBTABLES_SITE = http://downloads.sourceforge.net/project/ebtables/ebtables/ebtables-$(subst .,-,$(EBTABLES_VERSION)) EBTABLES_SITE = http://downloads.sourceforge.net/project/ebtables/ebtables/ebtables-$(subst .,-,$(EBTABLES_VERSION))
EBTABLES_LICENSE = GPLv2+ EBTABLES_LICENSE = GPLv2+
EBTABLES_LICENSE_FILES = COPYING EBTABLES_LICENSE_FILES = COPYING
EBTABLES_STATIC = $(if $(BR2_PREFER_STATIC_LIB),static) EBTABLES_STATIC = $(if $(BR2_STATIC_LIBS),static)
EBTABLES_K64U32 = $(if $(BR2_KERNEL_64_USERLAND_32),-DKERNEL_64_USERSPACE_32) EBTABLES_K64U32 = $(if $(BR2_KERNEL_64_USERLAND_32),-DKERNEL_64_USERSPACE_32)
define EBTABLES_BUILD_CMDS define EBTABLES_BUILD_CMDS
@ -17,7 +17,7 @@ define EBTABLES_BUILD_CMDS
CFLAGS="$(TARGET_CFLAGS) $(EBTABLES_K64U32)" -C $(@D) CFLAGS="$(TARGET_CFLAGS) $(EBTABLES_K64U32)" -C $(@D)
endef endef
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
define EBTABLES_INSTALL_TARGET_CMDS define EBTABLES_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 -D $(@D)/$(EBTABLES_SUBDIR)/static \ $(INSTALL) -m 0755 -D $(@D)/$(EBTABLES_SUBDIR)/static \
$(TARGET_DIR)/sbin/ebtables $(TARGET_DIR)/sbin/ebtables

View File

@ -14,7 +14,7 @@ config BR2_PACKAGE_ECRYPTFS_UTILS
depends on BR2_TOOLCHAIN_HAS_THREADS # libnss -> libnspr depends on BR2_TOOLCHAIN_HAS_THREADS # libnss -> libnspr
depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT # libnss -> libnspr depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT # libnss -> libnspr
depends on !BR2_MIPS_NABI32 # libnss depends on !BR2_MIPS_NABI32 # libnss
depends on !BR2_PREFER_STATIC_LIB # libnss depends on !BR2_STATIC_LIBS # libnss
help help
eCryptfs is a POSIX-compliant enterprise cryptographic eCryptfs is a POSIX-compliant enterprise cryptographic
filesystem for Linux. It is stacked on top of any other filesystem for Linux. It is stacked on top of any other
@ -35,4 +35,4 @@ comment "ecryptfs-utils needs a toolchain w/ largefile, threads, wchar, dynamic
depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT
depends on BR2_USE_MMU depends on BR2_USE_MMU
depends on !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR || \ depends on !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR || \
BR2_PREFER_STATIC_LIB BR2_STATIC_LIBS

View File

@ -17,7 +17,7 @@ if BR2_PACKAGE_LIBEDBUS
config BR2_PACKAGE_LIBEDBUS_BLUEZ config BR2_PACKAGE_LIBEDBUS_BLUEZ
bool "bluez support" bool "bluez support"
depends on !BR2_avr32 # bluez_utils depends on !BR2_avr32 # bluez_utils
depends on !BR2_PREFER_STATIC_LIB # bluez_utils depends on !BR2_STATIC_LIBS # bluez_utils
depends on BR2_USE_WCHAR # bluez_utils -> glib2 depends on BR2_USE_WCHAR # bluez_utils -> glib2
depends on BR2_TOOLCHAIN_HAS_THREADS # bluez_utils -> glib2 depends on BR2_TOOLCHAIN_HAS_THREADS # bluez_utils -> glib2
select BR2_PACKAGE_BLUEZ_UTILS select BR2_PACKAGE_BLUEZ_UTILS
@ -26,7 +26,7 @@ config BR2_PACKAGE_LIBEDBUS_BLUEZ
comment "bluez support needs a toolchain w/ wchar, threads, dynamic library" comment "bluez support needs a toolchain w/ wchar, threads, dynamic library"
depends on !BR2_avr32 depends on !BR2_avr32
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || BR2_PREFER_STATIC_LIB depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
config BR2_PACKAGE_LIBEDBUS_CONNMAN config BR2_PACKAGE_LIBEDBUS_CONNMAN
bool "connman support" bool "connman support"

View File

@ -1,7 +1,7 @@
comment "elfutils needs a toolchain w/ largefile, wchar, dynamic library" comment "elfutils needs a toolchain w/ largefile, wchar, dynamic library"
depends on !BR2_avr32 depends on !BR2_avr32
depends on !BR2_bfin depends on !BR2_bfin
depends on !BR2_LARGEFILE || !BR2_USE_WCHAR || BR2_PREFER_STATIC_LIB depends on !BR2_LARGEFILE || !BR2_USE_WCHAR || BR2_STATIC_LIBS
config BR2_PACKAGE_ELFUTILS config BR2_PACKAGE_ELFUTILS
bool "elfutils" bool "elfutils"
@ -9,7 +9,7 @@ config BR2_PACKAGE_ELFUTILS
select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT
depends on BR2_LARGEFILE depends on BR2_LARGEFILE
depends on BR2_USE_WCHAR depends on BR2_USE_WCHAR
depends on !BR2_PREFER_STATIC_LIB depends on !BR2_STATIC_LIBS
# canonicalize_file_name() not available on uClibc 0.9.31, used # canonicalize_file_name() not available on uClibc 0.9.31, used
# only for AVR32 # only for AVR32
depends on !BR2_avr32 depends on !BR2_avr32

View File

@ -1,11 +1,11 @@
comment "erlang needs a toolchain w/ threads, shared library" comment "erlang needs a toolchain w/ threads, shared library"
depends on !BR2_TOOLCHAIN_HAS_THREADS && BR2_PREFER_STATIC_LIB depends on !BR2_TOOLCHAIN_HAS_THREADS && BR2_STATIC_LIBS
config BR2_PACKAGE_ERLANG config BR2_PACKAGE_ERLANG
bool "erlang" bool "erlang"
depends on BR2_USE_MMU # fork() depends on BR2_USE_MMU # fork()
depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_TOOLCHAIN_HAS_THREADS
depends on !BR2_PREFER_STATIC_LIB depends on !BR2_STATIC_LIBS
help help
Erlang is a programming language used to build massively scalable Erlang is a programming language used to build massively scalable
soft real-time systems with requirements on high availability. soft real-time systems with requirements on high availability.

View File

@ -5,7 +5,7 @@ config BR2_PACKAGE_EUDEV
depends on BR2_USE_MMU # uses fork() depends on BR2_USE_MMU # uses fork()
depends on BR2_LARGEFILE # util-linux depends on BR2_LARGEFILE # util-linux
depends on BR2_USE_WCHAR # util-linux depends on BR2_USE_WCHAR # util-linux
depends on !BR2_PREFER_STATIC_LIB # kmod depends on !BR2_STATIC_LIBS # kmod
select BR2_PACKAGE_HAS_UDEV select BR2_PACKAGE_HAS_UDEV
select BR2_PACKAGE_UTIL_LINUX select BR2_PACKAGE_UTIL_LINUX
select BR2_PACKAGE_UTIL_LINUX_LIBBLKID select BR2_PACKAGE_UTIL_LINUX_LIBBLKID
@ -39,4 +39,4 @@ comment "eudev needs eudev /dev management"
comment "eudev needs a toolchain w/ largefile, wchar, dynamic library" comment "eudev needs a toolchain w/ largefile, wchar, dynamic library"
depends on !BR2_avr32 depends on !BR2_avr32
depends on BR2_USE_MMU depends on BR2_USE_MMU
depends on !BR2_LARGEFILE || !BR2_USE_WCHAR || BR2_PREFER_STATIC_LIB depends on !BR2_LARGEFILE || !BR2_USE_WCHAR || BR2_STATIC_LIBS

View File

@ -4,7 +4,7 @@ config BR2_PACKAGE_EXFAT
depends on BR2_TOOLCHAIN_HAS_THREADS # libfuse depends on BR2_TOOLCHAIN_HAS_THREADS # libfuse
depends on BR2_USE_MMU # libfuse depends on BR2_USE_MMU # libfuse
depends on BR2_USE_WCHAR depends on BR2_USE_WCHAR
depends on !BR2_PREFER_STATIC_LIB # libfuse depends on !BR2_STATIC_LIBS # libfuse
select BR2_PACKAGE_LIBFUSE select BR2_PACKAGE_LIBFUSE
help help
A full-featured exFAT file system implementation for GNU/Linux A full-featured exFAT file system implementation for GNU/Linux
@ -14,4 +14,4 @@ config BR2_PACKAGE_EXFAT
comment "exfat needs a toolchain w/ largefile, wchar, threads, dynamic library" comment "exfat needs a toolchain w/ largefile, wchar, threads, dynamic library"
depends on BR2_USE_MMU depends on BR2_USE_MMU
depends on !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR || BR2_PREFER_STATIC_LIB depends on !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR || BR2_STATIC_LIBS

View File

@ -86,7 +86,7 @@ endef
endif # CUSTOM_CONFIG endif # CUSTOM_CONFIG
# exim needs a bit of love to build statically # exim needs a bit of love to build statically
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
EXIM_STATIC_FLAGS = LFLAGS="-pthread --static" EXIM_STATIC_FLAGS = LFLAGS="-pthread --static"
endif endif

View File

@ -1,9 +1,9 @@
comment "exiv2 needs a toolchain w/ C++, dynamic library" comment "exiv2 needs a toolchain w/ C++, dynamic library"
depends on BR2_PREFER_STATIC_LIB || !BR2_INSTALL_LIBSTDCPP depends on BR2_STATIC_LIBS || !BR2_INSTALL_LIBSTDCPP
config BR2_PACKAGE_EXIV2 config BR2_PACKAGE_EXIV2
bool "exiv2" bool "exiv2"
depends on !BR2_PREFER_STATIC_LIB depends on !BR2_STATIC_LIBS
depends on BR2_INSTALL_LIBSTDCPP depends on BR2_INSTALL_LIBSTDCPP
help help
Exiv2 is a C++ library and a command line utility to manage Exiv2 is a C++ library and a command line utility to manage

View File

@ -1,7 +1,7 @@
config BR2_PACKAGE_FAIFA config BR2_PACKAGE_FAIFA
bool "faifa" bool "faifa"
select BR2_PACKAGE_LIBPCAP select BR2_PACKAGE_LIBPCAP
depends on !BR2_PREFER_STATIC_LIB depends on !BR2_STATIC_LIBS
depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_TOOLCHAIN_HAS_THREADS
help help
Faifa can configure any Intellon-based Power Line Faifa can configure any Intellon-based Power Line
@ -13,4 +13,4 @@ config BR2_PACKAGE_FAIFA
https://dev.open-plc.org https://dev.open-plc.org
comment "faifa needs a toolchain w/ dynamic library, threads" comment "faifa needs a toolchain w/ dynamic library, threads"
depends on BR2_PREFER_STATIC_LIB || !BR2_TOOLCHAIN_HAS_THREADS depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS

View File

@ -17,7 +17,7 @@ ifeq ($(BR2_PACKAGE_FBV_PNG),y)
FBV_DEPENDENCIES += libpng FBV_DEPENDENCIES += libpng
# libpng in turn depends on other libraries # libpng in turn depends on other libraries
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
FBV_CONFIGURE_OPTS += "--libs=$(shell $(PKG_CONFIG_HOST_BINARY) --libs libpng --static)" FBV_CONFIGURE_OPTS += "--libs=$(shell $(PKG_CONFIG_HOST_BINARY) --libs libpng --static)"
endif endif

View File

@ -337,7 +337,7 @@ else
FFMPEG_CONF_OPTS += --disable-altivec FFMPEG_CONF_OPTS += --disable-altivec
endif endif
ifeq ($(BR2_PREFER_STATIC_LIB),) ifeq ($(BR2_STATIC_LIBS),)
FFMPEG_CONF_OPTS += --enable-pic FFMPEG_CONF_OPTS += --enable-pic
else else
FFMPEG_CONF_OPTS += --disable-pic FFMPEG_CONF_OPTS += --disable-pic

View File

@ -1,7 +1,7 @@
config BR2_PACKAGE_FLANN config BR2_PACKAGE_FLANN
bool "flann" bool "flann"
depends on BR2_INSTALL_LIBSTDCPP depends on BR2_INSTALL_LIBSTDCPP
depends on !BR2_PREFER_STATIC_LIB depends on !BR2_STATIC_LIBS
# triggers an assert in the linker of this toolchain # triggers an assert in the linker of this toolchain
depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305 depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305
help help
@ -24,4 +24,4 @@ config BR2_PACKAGE_FLANN_EXAMPLES
endif endif
comment "flann needs a toolchain w/ C++, dynamic library" comment "flann needs a toolchain w/ C++, dynamic library"
depends on !BR2_INSTALL_LIBSTDCPP || BR2_PREFER_STATIC_LIB depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS

View File

@ -1,7 +1,7 @@
config BR2_PACKAGE_FSWEBCAM config BR2_PACKAGE_FSWEBCAM
bool "fswebcam" bool "fswebcam"
depends on BR2_USE_MMU # fork() depends on BR2_USE_MMU # fork()
depends on !BR2_PREFER_STATIC_LIB depends on !BR2_STATIC_LIBS
select BR2_PACKAGE_GD select BR2_PACKAGE_GD
select BR2_PACKAGE_FREETYPE select BR2_PACKAGE_FREETYPE
select BR2_PACKAGE_JPEG select BR2_PACKAGE_JPEG
@ -19,4 +19,4 @@ config BR2_PACKAGE_FSWEBCAM
comment "fswebcam needs a toolchain w/ dynamic library" comment "fswebcam needs a toolchain w/ dynamic library"
depends on BR2_USE_MMU depends on BR2_USE_MMU
depends on BR2_PREFER_STATIC_LIB depends on BR2_STATIC_LIBS

View File

@ -2,7 +2,7 @@ config BR2_PACKAGE_GAWK
bool "gawk" bool "gawk"
depends on BR2_USE_WCHAR depends on BR2_USE_WCHAR
depends on BR2_USE_MMU # fork() depends on BR2_USE_MMU # fork()
depends on !BR2_PREFER_STATIC_LIB depends on !BR2_STATIC_LIBS
help help
A special-purpose programming language which is data driven A special-purpose programming language which is data driven
rather than procedural. Allows for simple data-reformatting jobs rather than procedural. Allows for simple data-reformatting jobs
@ -12,4 +12,4 @@ config BR2_PACKAGE_GAWK
comment "gawk needs a toolchain w/ wchar, dynamic library" comment "gawk needs a toolchain w/ wchar, dynamic library"
depends on BR2_USE_MMU depends on BR2_USE_MMU
depends on !BR2_USE_WCHAR || BR2_PREFER_STATIC_LIB depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS

View File

@ -54,7 +54,7 @@ HOST_GCC_FINAL_CONF_OPTS = \
--with-build-time-tools=$(HOST_DIR)/usr/$(GNU_TARGET_NAME)/bin --with-build-time-tools=$(HOST_DIR)/usr/$(GNU_TARGET_NAME)/bin
# Disable shared libs like libstdc++ if we do static since it confuses linking # Disable shared libs like libstdc++ if we do static since it confuses linking
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
HOST_GCC_FINAL_CONF_OPTS += --disable-shared HOST_GCC_FINAL_CONF_OPTS += --disable-shared
else else
HOST_GCC_FINAL_CONF_OPTS += --enable-shared HOST_GCC_FINAL_CONF_OPTS += --enable-shared
@ -146,7 +146,7 @@ define HOST_GCC_FINAL_INSTALL_STATIC_LIBS
done done
endef endef
ifeq ($(BR2_PREFER_STATIC_LIB),) ifeq ($(BR2_STATIC_LIBS),)
define HOST_GCC_FINAL_INSTALL_SHARED_LIBS define HOST_GCC_FINAL_INSTALL_SHARED_LIBS
for i in $(HOST_GCC_FINAL_USR_LIBS) ; do \ for i in $(HOST_GCC_FINAL_USR_LIBS) ; do \
cp -dpf $(HOST_DIR)/usr/$(GNU_TARGET_NAME)/lib*/$${i}.so* \ cp -dpf $(HOST_DIR)/usr/$(GNU_TARGET_NAME)/lib*/$${i}.so* \

View File

@ -1,7 +1,7 @@
config BR2_PACKAGE_GIBLIB config BR2_PACKAGE_GIBLIB
bool "giblib" bool "giblib"
depends on BR2_PACKAGE_XORG7 depends on BR2_PACKAGE_XORG7
depends on !BR2_PREFER_STATIC_LIB depends on !BR2_STATIC_LIBS
select BR2_PACKAGE_IMLIB2 select BR2_PACKAGE_IMLIB2
select BR2_PACKAGE_IMLIB2_X select BR2_PACKAGE_IMLIB2_X
help help
@ -10,4 +10,4 @@ config BR2_PACKAGE_GIBLIB
http://linuxbrit.co.uk/giblib/ http://linuxbrit.co.uk/giblib/
comment "giblib support needs a toolchain w/ dynamic library" comment "giblib support needs a toolchain w/ dynamic library"
depends on BR2_PREFER_STATIC_LIB depends on BR2_STATIC_LIBS

View File

@ -1,6 +1,6 @@
config BR2_PACKAGE_GPM config BR2_PACKAGE_GPM
bool "gpm" bool "gpm"
depends on !BR2_PREFER_STATIC_LIB depends on !BR2_STATIC_LIBS
depends on BR2_USE_MMU # fork() depends on BR2_USE_MMU # fork()
help help
"gpm" means general purpose mouse (server) and provides mouse support "gpm" means general purpose mouse (server) and provides mouse support
@ -22,5 +22,5 @@ config BR2_PACKAGE_GPM_INSTALL_TEST_TOOLS
endif endif
comment "gpm mouse server needs a toolchain w/ dynamic library" comment "gpm mouse server needs a toolchain w/ dynamic library"
depends on BR2_PREFER_STATIC_LIB depends on BR2_STATIC_LIBS
depends on BR2_USE_MMU depends on BR2_USE_MMU

View File

@ -26,7 +26,7 @@ GPTFDISK_DEPENDENCIES += icu
GPTFDISK_MAKE_OPTS += USE_UTF16=y GPTFDISK_MAKE_OPTS += USE_UTF16=y
endif endif
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE)$(BR2_PREFER_STATIC_LIB),yy) ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE)$(BR2_STATIC_LIBS),yy)
GPTFDISK_MAKE_OPTS += LDLIBS=-lintl GPTFDISK_MAKE_OPTS += LDLIBS=-lintl
endif endif

View File

@ -80,7 +80,7 @@ else
GST_FFMPEG_CONF_EXTRA_OPTS += --disable-altivec GST_FFMPEG_CONF_EXTRA_OPTS += --disable-altivec
endif endif
ifeq ($(BR2_PREFER_STATIC_LIB),) ifeq ($(BR2_STATIC_LIBS),)
GST_FFMPEG_CONF_EXTRA_OPTS += --enable-pic GST_FFMPEG_CONF_EXTRA_OPTS += --enable-pic
endif endif

View File

@ -372,7 +372,7 @@ config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_DIRECTFB
config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_WAYLAND config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_WAYLAND
bool "wayland" bool "wayland"
depends on !BR2_avr32 # wayland depends on !BR2_avr32 # wayland
depends on !BR2_PREFER_STATIC_LIB # wayland depends on !BR2_STATIC_LIBS # wayland
depends on BR2_TOOLCHAIN_HAS_THREADS # wayland depends on BR2_TOOLCHAIN_HAS_THREADS # wayland
select BR2_PACKAGE_WAYLAND select BR2_PACKAGE_WAYLAND
help help

View File

@ -41,13 +41,13 @@ comment "plugins with external dependencies (there may be more available)"
config BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_DVDREAD config BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_DVDREAD
bool "dvdread" bool "dvdread"
depends on BR2_LARGEFILE # libdvdread depends on BR2_LARGEFILE # libdvdread
depends on !BR2_PREFER_STATIC_LIB # libdvdread depends on !BR2_STATIC_LIBS # libdvdread
select BR2_PACKAGE_LIBDVDREAD select BR2_PACKAGE_LIBDVDREAD
help help
Access a DVD with dvdread Access a DVD with dvdread
comment "dvdread needs a toolchain w/ dynamic library, largefile" comment "dvdread needs a toolchain w/ dynamic library, largefile"
depends on !BR2_LARGEFILE || BR2_PREFER_STATIC_LIB depends on !BR2_LARGEFILE || BR2_STATIC_LIBS
config BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_LAME config BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_LAME
bool "lame (*.mp3 audio encoder)" bool "lame (*.mp3 audio encoder)"

View File

@ -19,7 +19,7 @@ ifeq ($(BR2_PACKAGE_HASERL_WITH_LUA),y)
HASERL_DEPENDENCIES += lua HASERL_DEPENDENCIES += lua
# liblua uses dlopen when dynamically linked # liblua uses dlopen when dynamically linked
ifneq ($(BR2_PREFER_STATIC_LIB),y) ifneq ($(BR2_STATIC_LIBS),y)
HASERL_CONF_ENV += LIBS="-ldl" HASERL_CONF_ENV += LIBS="-ldl"
endif endif

View File

@ -2,7 +2,7 @@ config BR2_PACKAGE_HEIRLOOM_MAILX
bool "heirloom-mailx" bool "heirloom-mailx"
# uses fork() # uses fork()
depends on BR2_USE_MMU depends on BR2_USE_MMU
depends on !BR2_PREFER_STATIC_LIB depends on !BR2_STATIC_LIBS
help help
Heirloom mailx (previously known as nail) is a mail user Heirloom mailx (previously known as nail) is a mail user
agent for Unix systems. agent for Unix systems.
@ -16,5 +16,5 @@ config BR2_PACKAGE_HEIRLOOM_MAILX
http://heirloom.sourceforge.net/mailx.html http://heirloom.sourceforge.net/mailx.html
comment "heirloom-mailx needs a toolchain w/ dynamic library" comment "heirloom-mailx needs a toolchain w/ dynamic library"
depends on BR2_PREFER_STATIC_LIB depends on BR2_STATIC_LIBS
depends on BR2_USE_MMU depends on BR2_USE_MMU

View File

@ -16,12 +16,12 @@ if BR2_PACKAGE_HOSTAPD
config BR2_PACKAGE_HOSTAPD_EAP config BR2_PACKAGE_HOSTAPD_EAP
bool "Enable EAP" bool "Enable EAP"
depends on !BR2_PREFER_STATIC_LIB depends on !BR2_STATIC_LIBS
help help
Enable support for EAP and RADIUS. Enable support for EAP and RADIUS.
comment "hostapd EAP needs a toolchain w/ dynamic library" comment "hostapd EAP needs a toolchain w/ dynamic library"
depends on BR2_PREFER_STATIC_LIB depends on BR2_STATIC_LIBS
config BR2_PACKAGE_HOSTAPD_WPS config BR2_PACKAGE_HOSTAPD_WPS
bool "Enable WPS" bool "Enable WPS"

View File

@ -31,7 +31,7 @@ HOSTAPD_CONFIG_DISABLE =
# libnl-3 needs -lm (for rint) and -lpthread if linking statically # libnl-3 needs -lm (for rint) and -lpthread if linking statically
# And library order matters hence stick -lnl-3 first since it's appended # And library order matters hence stick -lnl-3 first since it's appended
# in the hostapd Makefiles as in LIBS+=-lnl-3 ... thus failing # in the hostapd Makefiles as in LIBS+=-lnl-3 ... thus failing
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
HOSTAPD_LIBS += -lnl-3 -lm -lpthread HOSTAPD_LIBS += -lnl-3 -lm -lpthread
endif endif
@ -42,7 +42,7 @@ endif
# Try to use openssl if it's already available # Try to use openssl if it's already available
ifeq ($(BR2_PACKAGE_OPENSSL),y) ifeq ($(BR2_PACKAGE_OPENSSL),y)
HOSTAPD_DEPENDENCIES += openssl HOSTAPD_DEPENDENCIES += openssl
HOSTAPD_LIBS += $(if $(BR2_PREFER_STATIC_LIB),-lcrypto -lz) HOSTAPD_LIBS += $(if $(BR2_STATIC_LIBS),-lcrypto -lz)
HOSTAPD_CONFIG_EDITS += 's/\#\(CONFIG_TLS=openssl\)/\1/' HOSTAPD_CONFIG_EDITS += 's/\#\(CONFIG_TLS=openssl\)/\1/'
else else
HOSTAPD_CONFIG_DISABLE += CONFIG_EAP_PWD HOSTAPD_CONFIG_DISABLE += CONFIG_EAP_PWD

View File

@ -11,7 +11,7 @@ IFTOP_LICENSE = GPLv2+
IFTOP_LICENSE_FILES = COPYING IFTOP_LICENSE_FILES = COPYING
IFTOP_LIBS = -lpcap IFTOP_LIBS = -lpcap
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
IFTOP_LIBS += $(shell $(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs) IFTOP_LIBS += $(shell $(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs)
endif endif
IFTOP_CONF_ENV += LIBS+="$(IFTOP_LIBS)" IFTOP_CONF_ENV += LIBS+="$(IFTOP_LIBS)"

View File

@ -1,10 +1,10 @@
comment "imlib2 needs a toolchain w/ dynamic library" comment "imlib2 needs a toolchain w/ dynamic library"
depends on BR2_PREFER_STATIC_LIB depends on BR2_STATIC_LIBS
config BR2_PACKAGE_IMLIB2 config BR2_PACKAGE_IMLIB2
bool "imlib2" bool "imlib2"
select BR2_PACKAGE_FREETYPE select BR2_PACKAGE_FREETYPE
depends on !BR2_PREFER_STATIC_LIB # dlopen() depends on !BR2_STATIC_LIBS # dlopen()
help help
Imlib 2 is the successor to Imlib. This library provides Imlib 2 is the successor to Imlib. This library provides
routines to load, save and render images in various formats. routines to load, save and render images in various formats.

View File

@ -1,7 +1,7 @@
config BR2_PACKAGE_INADYN config BR2_PACKAGE_INADYN
bool "inadyn" bool "inadyn"
depends on BR2_USE_MMU # Uses fork() depends on BR2_USE_MMU # Uses fork()
depends on !BR2_PREFER_STATIC_LIB # dlopen() depends on !BR2_STATIC_LIBS # dlopen()
help help
INADYN is a free DynDNS client. It gives the possibility INADYN is a free DynDNS client. It gives the possibility
to have your own fixed hostname registered on the internet, to have your own fixed hostname registered on the internet,
@ -10,5 +10,5 @@ config BR2_PACKAGE_INADYN
https://github.com/troglobit/inadyn https://github.com/troglobit/inadyn
comment "inadyn needs a toolchain w/ dynamic library" comment "inadyn needs a toolchain w/ dynamic library"
depends on BR2_PREFER_STATIC_LIB depends on BR2_STATIC_LIBS
depends on BR2_USE_MMU depends on BR2_USE_MMU

View File

@ -16,7 +16,7 @@ IPSEC_TOOLS_DEPENDENCIES = openssl flex host-flex
IPSEC_TOOLS_MAKE_OPTS = CFLAGS='$(TARGET_CFLAGS)' IPSEC_TOOLS_MAKE_OPTS = CFLAGS='$(TARGET_CFLAGS)'
# openssl uses zlib, so we need to explicitly link with it when static # openssl uses zlib, so we need to explicitly link with it when static
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
IPSEC_TOOLS_CONF_ENV += LIBS=-lz IPSEC_TOOLS_CONF_ENV += LIBS=-lz
endif endif

View File

@ -14,7 +14,7 @@ IPTABLES_LICENSE = GPLv2
IPTABLES_LICENSE_FILES = COPYING IPTABLES_LICENSE_FILES = COPYING
# Building static causes ugly warnings on some plugins # Building static causes ugly warnings on some plugins
IPTABLES_CONF_OPTS = --libexecdir=/usr/lib --with-kernel=$(STAGING_DIR)/usr \ IPTABLES_CONF_OPTS = --libexecdir=/usr/lib --with-kernel=$(STAGING_DIR)/usr \
$(if $(BR2_PREFER_STATIC_LIB),,--disable-static) $(if $(BR2_STATIC_LIBS),,--disable-static)
# Because of iptables-01-fix-static-link.patch # Because of iptables-01-fix-static-link.patch
IPTABLES_AUTORECONF = YES IPTABLES_AUTORECONF = YES

View File

@ -14,7 +14,7 @@ IW_MAKE_OPTS = CC="$(TARGET_CC)" LD="$(TARGET_LD)" LDFLAGS="$(TARGET_LDFLAGS)"
IW_MAKE_ENV = PKG_CONFIG="$(HOST_DIR)/usr/bin/pkg-config" \ IW_MAKE_ENV = PKG_CONFIG="$(HOST_DIR)/usr/bin/pkg-config" \
GIT_DIR=$(IW_DIR) GIT_DIR=$(IW_DIR)
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
# libnl needs pthread/m, so we need to explicitly with them when static # libnl needs pthread/m, so we need to explicitly with them when static
# these need to added AFTER libnl, so we have to override LIBS completely # these need to added AFTER libnl, so we have to override LIBS completely
IW_MAKE_OPTS += LIBS='-lnl-genl-3 -lnl-3 -lpthread -lm' IW_MAKE_OPTS += LIBS='-lnl-genl-3 -lnl-3 -lpthread -lm'

View File

@ -25,7 +25,7 @@ define JIMTCL_LINK_TCLSH
endef endef
endif endif
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
JIMTCL_SHARED = JIMTCL_SHARED =
JIMTCL_LIB = a JIMTCL_LIB = a
JIMTCL_INSTALL_LIB = JIMTCL_INSTALL_LIB =

View File

@ -1,7 +1,7 @@
config BR2_PACKAGE_KEXEC_LITE config BR2_PACKAGE_KEXEC_LITE
bool "kexec-lite" bool "kexec-lite"
depends on BR2_powerpc || BR2_powerpc64 depends on BR2_powerpc || BR2_powerpc64
depends on !BR2_PREFER_STATIC_LIB # dtc, elfutils depends on !BR2_STATIC_LIBS # dtc, elfutils
depends on BR2_LARGEFILE # elfutils depends on BR2_LARGEFILE # elfutils
depends on BR2_USE_WCHAR # elfutils depends on BR2_USE_WCHAR # elfutils
select BR2_PACKAGE_ELFUTILS select BR2_PACKAGE_ELFUTILS
@ -16,4 +16,4 @@ config BR2_PACKAGE_KEXEC_LITE
comment "kexec-lite needs a toolchain w/ largefile, wchar, dynamic library" comment "kexec-lite needs a toolchain w/ largefile, wchar, dynamic library"
depends on BR2_powerpc || BR2_powerpc64 depends on BR2_powerpc || BR2_powerpc64
depends on BR2_PREFER_STATIC_LIB || !BR2_LARGEFILE || !BR2_USE_WCHAR depends on BR2_STATIC_LIBS || !BR2_LARGEFILE || !BR2_USE_WCHAR

View File

@ -19,7 +19,7 @@ KEYUTILS_MAKE_PARAMS = \
CPPFLAGS="$(TARGET_CPPFLAGS) -I." \ CPPFLAGS="$(TARGET_CPPFLAGS) -I." \
LNS="$(HOSTLN) -sf" LNS="$(HOSTLN) -sf"
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
KEYUTILS_MAKE_PARAMS += NO_SOLIB=1 KEYUTILS_MAKE_PARAMS += NO_SOLIB=1
endif endif

View File

@ -1,6 +1,6 @@
config BR2_PACKAGE_KMOD config BR2_PACKAGE_KMOD
bool "kmod" bool "kmod"
depends on !BR2_PREFER_STATIC_LIB depends on !BR2_STATIC_LIBS
help help
handle kernel modules handle kernel modules

View File

@ -10,7 +10,7 @@ KNOCK_LICENSE = GPLv2+
KNOCK_LICENSE_FILES = COPYING KNOCK_LICENSE_FILES = COPYING
KNOCK_DEPENDENCIES = libpcap KNOCK_DEPENDENCIES = libpcap
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
KNOCK_CONF_OPTS = LIBS="$(shell $(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs)" KNOCK_CONF_OPTS = LIBS="$(shell $(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs)"
endif endif

View File

@ -11,7 +11,7 @@ LFTP_LICENSE_FILES = COPYING
LFTP_AUTORECONF = YES LFTP_AUTORECONF = YES
LFTP_DEPENDENCIES = readline zlib host-pkgconf LFTP_DEPENDENCIES = readline zlib host-pkgconf
ifneq ($(BR2_PREFER_STATIC_LIB),y) ifneq ($(BR2_STATIC_LIBS),y)
LFTP_CONF_OPTS += --with-modules LFTP_CONF_OPTS += --with-modules
endif endif

View File

@ -12,7 +12,7 @@ LIBARCHIVE_LICENSE_FILES = COPYING
LIBARCHIVE_CONF_OPTS = --without-lzma LIBARCHIVE_CONF_OPTS = --without-lzma
ifeq ($(BR2_PACKAGE_LIBARCHIVE_BSDTAR),y) ifeq ($(BR2_PACKAGE_LIBARCHIVE_BSDTAR),y)
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
LIBARCHIVE_CONF_OPTS += --enable-bsdtar=static LIBARCHIVE_CONF_OPTS += --enable-bsdtar=static
else else
LIBARCHIVE_CONF_OPTS += --enable-bsdtar=shared LIBARCHIVE_CONF_OPTS += --enable-bsdtar=shared
@ -22,7 +22,7 @@ LIBARCHIVE_CONF_OPTS += --disable-bsdtar
endif endif
ifeq ($(BR2_PACKAGE_LIBARCHIVE_BSDCPIO),y) ifeq ($(BR2_PACKAGE_LIBARCHIVE_BSDCPIO),y)
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
LIBARCHIVE_CONF_OPTS += --enable-bsdcpio=static LIBARCHIVE_CONF_OPTS += --enable-bsdcpio=static
else else
LIBARCHIVE_CONF_OPTS += --enable-bsdcpio=shared LIBARCHIVE_CONF_OPTS += --enable-bsdcpio=shared

View File

@ -1,7 +1,7 @@
config BR2_PACKAGE_LIBBLURAY config BR2_PACKAGE_LIBBLURAY
bool "libbluray" bool "libbluray"
depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_TOOLCHAIN_HAS_THREADS
depends on !BR2_PREFER_STATIC_LIB depends on !BR2_STATIC_LIBS
help help
libbluray is a client library for accessing bluray disks. libbluray is a client library for accessing bluray disks.
@ -9,4 +9,4 @@ config BR2_PACKAGE_LIBBLURAY
comment "libbluray needs a toolchain w/ threads, dynamic library" comment "libbluray needs a toolchain w/ threads, dynamic library"
depends on !BR2_TOOLCHAIN_HAS_THREADS depends on !BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_PREFER_STATIC_LIB depends on BR2_STATIC_LIBS

View File

@ -23,7 +23,7 @@ endif
# we don't have host-attr # we don't have host-attr
HOST_LIBCAP_DEPENDENCIES = HOST_LIBCAP_DEPENDENCIES =
ifeq ($(BR2_PREFER_STATIC_LIB),y) ifeq ($(BR2_STATIC_LIBS),y)
LIBCAP_MAKE_TARGET = libcap.a LIBCAP_MAKE_TARGET = libcap.a
LIBCAP_MAKE_INSTALL_TARGET = install-static LIBCAP_MAKE_INSTALL_TARGET = install-static
else else

View File

@ -3,7 +3,7 @@ config BR2_PACKAGE_LIBCEC
depends on BR2_INSTALL_LIBSTDCPP depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_USE_WCHAR depends on BR2_USE_WCHAR
depends on !BR2_PREFER_STATIC_LIB depends on !BR2_STATIC_LIBS
help help
libcec allows you in combination with the right hardware to libcec allows you in combination with the right hardware to
control your home theater devices with your TV remote control your home theater devices with your TV remote
@ -13,4 +13,4 @@ config BR2_PACKAGE_LIBCEC
comment "libcec needs a toolchain w/ C++, wchar, threads, dynamic library" comment "libcec needs a toolchain w/ C++, wchar, threads, dynamic library"
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
!BR2_USE_WCHAR || BR2_PREFER_STATIC_LIB !BR2_USE_WCHAR || BR2_STATIC_LIBS

View File

@ -9,7 +9,7 @@ LIBCGI_SITE = http://downloads.sourceforge.net/project/libcgi/libcgi/$(LIBCGI_VE
LIBCGI_INSTALL_STAGING = YES LIBCGI_INSTALL_STAGING = YES
# use cross CC/AR rather than host # use cross CC/AR rather than host
LIBCGI_MAKE_ENV = CC="$(TARGET_CC) $(TARGET_CFLAGS)" AR="$(TARGET_AR)" \ LIBCGI_MAKE_ENV = CC="$(TARGET_CC) $(TARGET_CFLAGS)" AR="$(TARGET_AR)" \
$(if $(BR2_PREFER_STATIC_LIB),STATIC=1) $(if $(BR2_STATIC_LIBS),STATIC=1)
LIBCGI_LICENSE = LGPLv2.1+ LIBCGI_LICENSE = LGPLv2.1+
$(eval $(autotools-package)) $(eval $(autotools-package))

View File

@ -2,7 +2,7 @@ config BR2_PACKAGE_LIBDVDNAV
bool "libdvdnav" bool "libdvdnav"
depends on BR2_LARGEFILE # libdvdread depends on BR2_LARGEFILE # libdvdread
depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_TOOLCHAIN_HAS_THREADS
depends on !BR2_PREFER_STATIC_LIB # libdvdread depends on !BR2_STATIC_LIBS # libdvdread
select BR2_PACKAGE_LIBDVDREAD select BR2_PACKAGE_LIBDVDREAD
help help
libdvdnav is a library that allows easy use of sophisticated libdvdnav is a library that allows easy use of sophisticated
@ -12,4 +12,4 @@ config BR2_PACKAGE_LIBDVDNAV
http://www.mplayerhq.hu http://www.mplayerhq.hu
comment "libdvdnav needs a toolchain w/ dynamic library, largefile, threads" comment "libdvdnav needs a toolchain w/ dynamic library, largefile, threads"
depends on !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS || BR2_PREFER_STATIC_LIB depends on !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS

Some files were not shown because too many files have changed in this diff Show More