links: fix static link with directfb
PATCH 1/1 links: fix static link with directfb
The AC_HAVE_FUNCS autoconf macro uses gcc to check for function existence. This breaks when the library depends on libstdc++, like directfb. Add this dependency externally.
Fixes:
http://autobuild.buildroot.net/results/548/548019b71c7db649f20d2c479bb8fb3612162d4a/
http://autobuild.buildroot.net/results/c94/c9495f54db388bde9d64325bb57fc4e58741f7a7/
http://autobuild.buildroot.net/results/9b8/9b883d42bff3633f16447d76d2eb4ddf68013788/
--- package/links/links.mk | 3 +++ 1 file changed, 3 insertions(+)
package/links/links.mk +3 -0
@@ -22,6 +22,9 @@ LINKS_CONF_OPTS += --without-x endif ifeq ($(BR2_PACKAGE_DIRECTFB),y) LINKS_CONF_ENV = ac_cv_path_DIRECTFB_CONFIG=$(STAGING_DIR)/usr/bin/directfb-config +ifeq ($(BR2_STATIC_LIBS),y) +LINKS_CONF_ENV += LIBS=-lstdc++ +endif LINKS_CONF_OPTS += --with-directfb LINKS_DEPENDENCIES += directfb else
Signature · 1 line
2.8.0.rc3
PATCH 1/1 links: fix static link with directfb
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Baruch" == Baruch Siach <[email protected]> writes:
The
AC_HAVE_FUNCSautoconf macro uses gcc to check for function existence. This breaks when the library depends on libstdc++, like directfb. Add this dependency externally.
Quoted 6 lines
Fixes:
http://autobuild.buildroot.net/results/548/548019b71c7db649f20d2c479bb8fb3612162d4a/
http://autobuild.buildroot.net/results/c94/c9495f54db388bde9d64325bb57fc4e58741f7a7/
http://autobuild.buildroot.net/results/9b8/9b883d42bff3633f16447d76d2eb4ddf68013788/Signed-off-by Baruch Siach <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard