[vlc-devel] [PATCH] contrib: libdsm: enable debug in builds with no optimizations
Steve Lhomme
robux4 at videolabs.io
Wed Jun 15 12:45:57 CEST 2016
maybe we should just add --enable-debug to HOSTCONF when there's no optimization
---
contrib/src/libdsm/rules.mak | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/contrib/src/libdsm/rules.mak b/contrib/src/libdsm/rules.mak
index 5f27ef8..0796b45 100644
--- a/contrib/src/libdsm/rules.mak
+++ b/contrib/src/libdsm/rules.mak
@@ -11,6 +11,11 @@ endif
$(TARBALLS)/libdsm-$(LIBDSM_VERSION).tar.gz:
$(call download,$(LIBDSM_URL))
+LIBDSM_CONF = $(HOSTCONF)
+
+ifndef WITH_OPTIMIZATION
+LIBDSM_CONF += --enable-debug
+endif
.sum-libdsm: libdsm-$(LIBDSM_VERSION).tar.gz
libdsm: libdsm-$(LIBDSM_VERSION).tar.gz .sum-libdsm
@@ -24,6 +29,6 @@ endif
DEPS_libdsm = libtasn1 iconv
.libdsm: libdsm
- cd $< && $(HOSTVARS) ./configure --disable-programs $(HOSTCONF)
+ cd $< && $(HOSTVARS) ./configure --disable-programs $(LIBDSM_CONF)
cd $< && $(MAKE) install
touch $@
--
2.8.2
More information about the vlc-devel
mailing list