* [Buildroot] [PATCH v2, 1/1] pixiewps: fix static linking with uclibc-ng
@ 2018-06-10 18:11 Fabrice Fontaine
2018-06-28 20:22 ` Thomas Petazzoni
2018-07-19 9:45 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2018-06-10 18:11 UTC (permalink / raw)
To: buildroot
Fixes following linking error with uClibc-ng:
/home/peko/autobuild/instance-0/output/host/lib/gcc/powerpc-buildroot-linux-uclibc/7.3.0/libgcc.a(unwind-dw2-fde-dip.o):
In function `_Unwind_Find_FDE':
/home/peko/autobuild/instance-0/output/build/host-gcc-final-7.3.0/build/powerpc-buildroot-linux-uclibc/libgcc/../../../libgcc/unwind-dw2-fde-dip.c:469:
undefined reference to `dl_iterate_phdr'
collect2: error: ld returned 1 exit status
Since uClibc-ng 1.0.18 a circular dependency between libc and libgcc
exist, when static linking is used. It can be resolved by the compiler
when -static is correctly passed in the linking step.
So use TARGET_CONFIGURE_OPTS to pass CC as well as LDFLAGS to make
Fixes:
- http://autobuild.buildroot.net/results/d9f0311538c8db1196839e36af3f6ef4e403be2b
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
Changes v1 -> v2 (after review of Thomas Petazzoni):
- Remove PIXIEWPS_MAKE_OPTS to use directly TARGET_CONFIGURE_OPTS
package/pixiewps/pixiewps.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/pixiewps/pixiewps.mk b/package/pixiewps/pixiewps.mk
index 95a253ab83..1f84bbeb34 100644
--- a/package/pixiewps/pixiewps.mk
+++ b/package/pixiewps/pixiewps.mk
@@ -10,7 +10,7 @@ PIXIEWPS_LICENSE = GPL-3.0+
PIXIEWPS_LICENSE_FILES = LICENSE.md
define PIXIEWPS_BUILD_CMDS
- $(TARGET_MAKE_ENV) $(MAKE) CC=$(TARGET_CC) -C $(@D)
+ $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
endef
define PIXIEWPS_INSTALL_TARGET_CMDS
--
2.14.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v2, 1/1] pixiewps: fix static linking with uclibc-ng
2018-06-10 18:11 [Buildroot] [PATCH v2, 1/1] pixiewps: fix static linking with uclibc-ng Fabrice Fontaine
@ 2018-06-28 20:22 ` Thomas Petazzoni
2018-07-19 9:45 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2018-06-28 20:22 UTC (permalink / raw)
To: buildroot
Hello,
On Sun, 10 Jun 2018 20:11:04 +0200, Fabrice Fontaine wrote:
> Fixes following linking error with uClibc-ng:
> /home/peko/autobuild/instance-0/output/host/lib/gcc/powerpc-buildroot-linux-uclibc/7.3.0/libgcc.a(unwind-dw2-fde-dip.o):
> In function `_Unwind_Find_FDE':
> /home/peko/autobuild/instance-0/output/build/host-gcc-final-7.3.0/build/powerpc-buildroot-linux-uclibc/libgcc/../../../libgcc/unwind-dw2-fde-dip.c:469:
> undefined reference to `dl_iterate_phdr'
> collect2: error: ld returned 1 exit status
>
> Since uClibc-ng 1.0.18 a circular dependency between libc and libgcc
> exist, when static linking is used. It can be resolved by the compiler
> when -static is correctly passed in the linking step.
>
> So use TARGET_CONFIGURE_OPTS to pass CC as well as LDFLAGS to make
>
> Fixes:
> - http://autobuild.buildroot.net/results/d9f0311538c8db1196839e36af3f6ef4e403be2b
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> Changes v1 -> v2 (after review of Thomas Petazzoni):
> - Remove PIXIEWPS_MAKE_OPTS to use directly TARGET_CONFIGURE_OPTS
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v2, 1/1] pixiewps: fix static linking with uclibc-ng
2018-06-10 18:11 [Buildroot] [PATCH v2, 1/1] pixiewps: fix static linking with uclibc-ng Fabrice Fontaine
2018-06-28 20:22 ` Thomas Petazzoni
@ 2018-07-19 9:45 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2018-07-19 9:45 UTC (permalink / raw)
To: buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Fixes following linking error with uClibc-ng:
> /home/peko/autobuild/instance-0/output/host/lib/gcc/powerpc-buildroot-linux-uclibc/7.3.0/libgcc.a(unwind-dw2-fde-dip.o):
> In function `_Unwind_Find_FDE':
> /home/peko/autobuild/instance-0/output/build/host-gcc-final-7.3.0/build/powerpc-buildroot-linux-uclibc/libgcc/../../../libgcc/unwind-dw2-fde-dip.c:469:
> undefined reference to `dl_iterate_phdr'
> collect2: error: ld returned 1 exit status
> Since uClibc-ng 1.0.18 a circular dependency between libc and libgcc
> exist, when static linking is used. It can be resolved by the compiler
> when -static is correctly passed in the linking step.
> So use TARGET_CONFIGURE_OPTS to pass CC as well as LDFLAGS to make
> Fixes:
> - http://autobuild.buildroot.net/results/d9f0311538c8db1196839e36af3f6ef4e403be2b
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> Changes v1 -> v2 (after review of Thomas Petazzoni):
> - Remove PIXIEWPS_MAKE_OPTS to use directly TARGET_CONFIGURE_OPTS
Committed to 2018.05.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-07-19 9:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-10 18:11 [Buildroot] [PATCH v2, 1/1] pixiewps: fix static linking with uclibc-ng Fabrice Fontaine
2018-06-28 20:22 ` Thomas Petazzoni
2018-07-19 9:45 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.