mocp: fix build with gcc5
authorDirk Neukirchen <redacted>
Mon, 15 Jun 2015 09:45:13 +0000 (11:45 +0200)
committerDirk Neukirchen <redacted>
Wed, 19 Aug 2015 09:19:50 +0000 (11:19 +0200)
change in default CPP settings lead to build errors
explicitly set flag to enable old behaviour

Signed-off-by: Dirk Neukirchen <redacted>
sound/mocp/Makefile

index d1917bfbe1167606b5098319378427fb625917ca..bef28d26dca20560afb4f86e4d01d48cec4f6dd0 100644 (file)
@@ -40,8 +40,9 @@ endef
 
 TARGET_CFLAGS+=-D_GNU_SOURCE
 
-define Build/Configure
-       $(call Build/Configure/Default, \
+TARGET_CPPFLAGS+=-P
+
+CONFIGURE_ARGS+= \
                $(if $(CONFIG_BUILD_PATENTED),,--without-mp3) \
                --enable-shared \
                --disable-static \
@@ -53,8 +54,7 @@ define Build/Configure
                --without-musepack \
                --without-rcc \
                $(if $(CONFIG_PACKAGE_libncursesw),--with-ncursesw --without-ncurses,--with-ncurses --without-ncursesw) \
-       )
-endef
+               --with-bdb-dir="$(STAGING_DIR)/usr"
 
 define Package/moc/install
        $(INSTALL_DIR) $(1)/usr/bin
git clone https://git.99rst.org/PROJECT