Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] qwt: fix build when BR2_STATIC_LIBS=y
@ 2017-05-11 13:46 Gwenhael Goavec-Merou
  2017-05-11 15:53 ` Thomas Petazzoni
  2017-05-15 11:39 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Gwenhael Goavec-Merou @ 2017-05-11 13:46 UTC (permalink / raw)
  To: buildroot

From: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>

By default, qwt build a shared library, but when BR2_STATIC_LIBS is set
compilation failed with errors like :
__uClibc_main.c:(.text+0x164): undefined reference to `__fini_array_end'
__uClibc_main.c:(.text+0x168): undefined reference to `__fini_array_start'
__uClibc_main.c:(.text+0x16c): undefined reference to `__fini_array_start'

This patch disable QwtDll to build a static library when BR2_STATIC_LIBS=y.

fix:
http://autobuild.buildroot.net/results/739/739406bb8073d1861933872a47802954d9767634/

Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
---
 package/qwt/qwt.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/qwt/qwt.mk b/package/qwt/qwt.mk
index d4e6d52..b5bdf51 100644
--- a/package/qwt/qwt.mk
+++ b/package/qwt/qwt.mk
@@ -41,6 +41,12 @@ else
 QWT_CONFIG += -e 's/^.*QWT_CONFIG.*QwtOpenGL.*$$/\# QWT_CONFIG += QwtOpenGL/'
 endif
 
+ifeq ($(BR2_STATIC_LIBS),y)
+QWT_CONFIG += -e 's/^.*QWT_CONFIG.*QwtDll.*$$/\# QWT_CONFIG += QwtDll/'
+else
+QWT_CONFIG += -e 's/^.*QWT_CONFIG.*QwtDll.*$$/\QWT_CONFIG += QwtDll/'
+endif
+
 define QWT_CONFIGURE_CMDS
 	$(SED) $(QWT_CONFIG) $(@D)/qwtconfig.pri
 	(cd $(@D); $(TARGET_MAKE_ENV) $(QWT_QMAKE))
-- 
2.10.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] qwt: fix build when BR2_STATIC_LIBS=y
  2017-05-11 13:46 [Buildroot] [PATCH] qwt: fix build when BR2_STATIC_LIBS=y Gwenhael Goavec-Merou
@ 2017-05-11 15:53 ` Thomas Petazzoni
  2017-05-15 11:39 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2017-05-11 15:53 UTC (permalink / raw)
  To: buildroot

Hello,

On Thu, 11 May 2017 15:46:57 +0200, Gwenhael Goavec-Merou wrote:

> +ifeq ($(BR2_STATIC_LIBS),y)
> +QWT_CONFIG += -e 's/^.*QWT_CONFIG.*QwtDll.*$$/\# QWT_CONFIG += QwtDll/'
> +else
> +QWT_CONFIG += -e 's/^.*QWT_CONFIG.*QwtDll.*$$/\QWT_CONFIG += QwtDll/'

                                                 ^^ this backslash shouldn't be here

I've fixed that and applied to master. Thanks a lot for working so
quickly on a patch!

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] qwt: fix build when BR2_STATIC_LIBS=y
  2017-05-11 13:46 [Buildroot] [PATCH] qwt: fix build when BR2_STATIC_LIBS=y Gwenhael Goavec-Merou
  2017-05-11 15:53 ` Thomas Petazzoni
@ 2017-05-15 11:39 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2017-05-15 11:39 UTC (permalink / raw)
  To: buildroot

>>>>> "Gwenhael" == Gwenhael Goavec-Merou <gwenj@trabucayre.com> writes:

 > From: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
 > By default, qwt build a shared library, but when BR2_STATIC_LIBS is set
 > compilation failed with errors like :
 > __uClibc_main.c:(.text+0x164): undefined reference to `__fini_array_end'
 > __uClibc_main.c:(.text+0x168): undefined reference to `__fini_array_start'
 > __uClibc_main.c:(.text+0x16c): undefined reference to `__fini_array_start'

 > This patch disable QwtDll to build a static library when BR2_STATIC_LIBS=y.

 > fix:
 > http://autobuild.buildroot.net/results/739/739406bb8073d1861933872a47802954d9767634/

 > Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>

Committed to 2017.02.x, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-05-15 11:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-11 13:46 [Buildroot] [PATCH] qwt: fix build when BR2_STATIC_LIBS=y Gwenhael Goavec-Merou
2017-05-11 15:53 ` Thomas Petazzoni
2017-05-15 11:39 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox