Skip to contentSkip to conversation

links: fix static link with directfb

PATCH New Baruch Siach 2 participants 2 messages Apr 12, 2016

lore
Share & tools
lore
#0 lore raw

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
index 62f91a32e39e..ab2b58359965 100644
@@ -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
#1 lore raw

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_FUNCS autoconf 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/

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard