A lot of packages ignored BR2_ENABLE_DEBUG. This patch simplifies the handling of
this option by adding the corresponding configure option to the global Makefile
for target packages.
For host packages --disable-debug is added to the global Makefile.
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
ifeq ($(BR2_ENABLE_DEBUG),y)
ENABLE_DEBUG := --enable-debug
else
-ENABLE_DEBUG :=
+ENABLE_DEBUG := --disable-debug
endif
ifeq ($(BR2_PREFER_STATIC_LIB),y)
ALSA_LIB_CONF_OPTS += --disable-old-symbols
endif
-ifeq ($(BR2_ENABLE_DEBUG),y)
-ALSA_LIB_CONF_OPTS += --enable-debug
-endif
-
ifeq ($(BR2_avr32),y)
ALSA_LIB_CFLAGS += -DAVR32_INLINE_BUG
endif
jm_cv_func_working_re_compile_pattern=yes ac_use_included_regex=no \
gl_cv_c_restrict=no ac_cv_prog_F77=no
-ATK_CONF_OPTS = --disable-glibtest --enable-explicit-deps=no \
- --disable-debug
+ATK_CONF_OPTS = --disable-glibtest --enable-explicit-deps=no
ATK_DEPENDENCIES = libglib2 host-pkgconf
HOST_DIRECTFB_DEPENDENCIES = host-pkgconf host-libpng
HOST_DIRECTFB_CONF_OPTS = \
- --disable-debug \
--disable-multi \
--enable-png \
--with-gfxdrivers=none \
FFMPEG_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBICONV),libiconv) host-pkgconf
-ifeq ($(BR2_ENABLE_DEBUG),y)
-FFMPEG_CONF_OPTS += --enable-debug
-else
-FFMPEG_CONF_OPTS += --disable-debug
-endif
-
ifeq ($(BR2_PACKAGE_FFMPEG_GPL),y)
FFMPEG_CONF_OPTS += --enable-gpl
else
GAMIN_INSTALL_STAGING = YES
GAMIN_LICENSE = LGPLv2+
GAMIN_LICENSE_FILES = COPYING
-GAMIN_CONF_OPTS = --disable-debug
# python support broken
GAMIN_CONF_OPTS += --without-python
GST_PLUGINS_GOOD_SITE = http://gstreamer.freedesktop.org/src/gst-plugins-good
GST_PLUGINS_GOOD_CONF_OPTS = \
- --disable-debug \
--disable-examples \
--disable-directsound \
--disable-sunaudio \
GST1_LIBAV_DEPENDENCIES = host-pkgconf gstreamer1 gst1-plugins-base
-GST1_LIBAV_CONF_EXTRA_OPTS = \
- --cross-prefix=$(TARGET_CROSS) \
- --target-os=linux \
- $(if $(BR2_ENABLE_DEBUG),--enable-debug,--disable-debug)
+GST1_LIBAV_CONF_EXTRA_OPTS = --cross-prefix=$(TARGET_CROSS) --target-os=linux
ifeq ($(BR2_PACKAGE_ZLIB),y)
GST1_LIBAV_CONF_EXTRA_OPTS += --enable-zlib
GST1_PLUGINS_BAD_CONF_OPTS = \
--disable-examples \
- --disable-debug \
--disable-valgrind \
--disable-directsound \
--disable-wsapi \
--disable-oggtest \
--disable-vorbistest \
--disable-freetypetest \
- --disable-valgrind \
- --disable-debug
+ --disable-valgrind
# Options which require currently unpackaged libraries
GST1_PLUGINS_BASE_CONF_OPTS += \
GST1_PLUGINS_GOOD_LICENSE = LGPLv2.1+
GST1_PLUGINS_GOOD_CONF_OPTS = \
- --disable-debug \
--disable-valgrind \
--disable-examples \
--disable-directsound \
# GPL licensed plugins will append to GST1_PLUGINS_UGLY_LICENSE if enabled.
GST1_PLUGINS_UGLY_LICENSE = LGPLv2.1+
-GST1_PLUGINS_UGLY_CONF_OPTS = \
- --disable-examples \
- --disable-debug \
- --disable-valgrind
+GST1_PLUGINS_UGLY_CONF_OPTS = --disable-examples --disable-valgrind
GST_PLUGINS_BAD1_CONF_OPTS += \
--disable-a52dec \
--disable-examples \
--disable-tests \
--disable-failing-tests \
- --disable-debug \
--disable-valgrind \
--disable-benchmarks \
--disable-check \
--x-libraries=$(STAGING_DIR)/usr/lib \
--disable-glibtest \
--enable-explicit-deps=no \
- --disable-debug \
--enable-clearlooks \
--disable-crux \
--disable-hc \
LESSTIF_CONF_OPTS = \
--with-gnu-ld \
--with-freetype-config=$(STAGING_DIR)/usr/bin/freetype-config \
- --enable-debug=no \
--enable-production=yes \
--enable-build-tests=no \
--no-recursion
HOST_LIBGLIB2_CONF_OPTS = \
--disable-gtk-doc \
- --enable-debug=no \
--disable-dtrace \
--disable-systemtap \
--disable-gcov \
ac_cv_prog_F77=no \
ac_cv_path_CUPS_CONFIG=no
-LIBGTK2_CONF_OPTS = --disable-glibtest \
- --enable-explicit-deps=no \
- --disable-debug
+LIBGTK2_CONF_OPTS = --disable-glibtest --enable-explicit-deps=no
LIBGTK2_DEPENDENCIES = host-pkgconf host-libgtk2 libglib2 cairo pango atk gdk-pixbuf
--without-libtiff \
--without-libjpeg \
--with-gdktarget=none \
- --disable-cups \
- --disable-debug
+ --disable-cups
define HOST_LIBGTK2_BUILD_CMDS
$(HOST_MAKE_ENV) make -C $(@D)/gtk gtk-update-icon-cache
LIBNDP_LICENSE_FILES = COPYING
LIBNDP_AUTORECONF = YES
LIBNDP_INSTALL_STAGING = YES
-LIBNDP_CONF_OPTS = --disable-debug
$(eval $(autotools-package))
LIBSOC_LICENSE_FILES = COPYING
LIBSOC_AUTORECONF = YES
LIBSOC_INSTALL_STAGING = YES
-LIBSOC_CONF_OPTS = --disable-debug
$(eval $(autotools-package))
LZMA_VERSION = 4.32.7
LZMA_SOURCE = lzma-$(LZMA_VERSION).tar.xz
LZMA_SITE = http://tukaani.org/lzma
-LZMA_CONF_OPTS = $(if $(BR2_ENABLE_DEBUG),--enable-debug,--disable-debug)
$(eval $(host-autotools-package))
OPENOBEX_INSTALL_STAGING = YES
OPENOBEX_CONF_OPTS += \
- $(if $(BR2_ENABLE_DEBUG),--enable-debug) \
$(if $(BR2_PACKAGE_OPENOBEX_APPS),--enable-apps) \
$(if $(BR2_PACKAGE_OPENOBEX_SYSLOG),--enable-syslog) \
$(if $(BR2_PACKAGE_OPENOBEX_DUMP),--enable-dump)
ifeq ($(BR2_PACKAGE_OPENVPN_SMALL),y)
OPENVPN_CONF_OPTS += --enable-small --disable-plugins \
- --disable-debug --disable-eurephia
+ --disable-eurephia
endif
# BusyBox 1.21+ places the ip applet in the "correct" place
ac_use_included_regex=no gl_cv_c_restrict=no \
ac_cv_path_FREETYPE_CONFIG=$(STAGING_DIR)/usr/bin/freetype-config
-PANGO_CONF_OPTS = --enable-explicit-deps=no \
- --disable-debug \
- --disable-gtk-doc-html
+PANGO_CONF_OPTS = --enable-explicit-deps=no --disable-gtk-doc-html
PANGO_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) \
host-pkgconf \
$$(DISABLE_NLS) \
$$(DISABLE_LARGEFILE) \
$$(DISABLE_IPV6) \
+ $$(ENABLE_DEBUG) \
$$(SHARED_STATIC_LIBS_OPTS) \
$$(QUIET) $$($$(PKG)_CONF_OPTS) \
)
--disable-doc \
--disable-docs \
--disable-documentation \
+ --disable-debug \
--with-xmlto=no \
--with-fop=no \
--disable-dependency-tracking \
RSYNC_LICENSE_FILES = COPYING
RSYNC_DEPENDENCIES = zlib popt
RSYNC_CONF_OPTS = \
- $(if $(BR2_ENABLE_DEBUG),--enable-debug,--disable-debug) \
--with-included-zlib=no \
--with-included-popt=no
XBMC_CONF_OPTS += \
--with-arch=$(BR2_ARCH) \
--disable-crystalhd \
- --disable-debug \
--disable-dvdcss \
--disable-hal \
--disable-joystick \
XENOMAI_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install-user
XENOMAI_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) install-user
-XENOMAI_CONF_OPTS += --includedir=/usr/include/xenomai/ --disable-doc-install \
- $(if $(BR2_ENABLE_DEBUG),--enable-debug,--disable-debug)
+XENOMAI_CONF_OPTS += --includedir=/usr/include/xenomai/ --disable-doc-install
define XENOMAI_REMOVE_DEVFILES
for i in xeno-config xeno-info wrap-link.sh ; do \