[Buildroot] [PATCH v1] wiringpi: fix static linking

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sun Feb 12 14:03:17 UTC 2017


Hello,

On Sat, 11 Feb 2017 23:04:08 +0100, Peter Seiderer wrote:
> Update patch 0001-Adjust-for-buildroot-build.patch to
> use real static linking (command line flag '-static' for
> target gpio-static).
> 
> Fixes [1]:
> 
>   [Link]
>   .../output/host/usr/lib/gcc/powerpc-buildroot-linux-uclibc/5.4.0/libgcc.a(unwind-dw2-fde-dip.o): In function `_Unwind_Find_FDE':
>   ...output/build/host-gcc-final-5.4.0/build/powerpc-buildroot-linux-uclibc/libgcc/../../../libgcc/unwind-dw2-fde-dip.c:465: undefined reference to `dl_iterate_phdr'
>   collect2: error: ld returned 1 exit status
>   make[1]: *** [gpio-static] Error 1
>   make[1]: Leaving directory `.../output/build/wiringpi-2.32/gpio'
> 
> [1] http://autobuild.buildroot.net/results/b905617dda0e120d04c54daf7cae2bad236ac767
> 
> Signed-off-by: Peter Seiderer <ps.report at gmx.net>
> ---
>  .../wiringpi/0001-Adjust-for-buildroot-build.patch | 30 ++++++++++++----------
>  1 file changed, 17 insertions(+), 13 deletions(-)

Applied to master, thanks. Don't forget to send your patch upstream.
Thanks!

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



More information about the buildroot mailing list