wiringpi: fix static linking
commit8ac3f121f0ccc31a79b08c473e19e4d4ae922942
authorPeter Seiderer <ps.report@gmx.net>
Sat, 11 Feb 2017 22:04:08 +0000 (11 23:04 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 12 Feb 2017 14:03:02 +0000 (12 15:03 +0100)
tree102f2ae9c9e33520d6b3ad5fb3f39f446480608d
parentbaba42687af3d845739d74a7c1fa3faf9c0f7cd0
wiringpi: fix static linking

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@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/wiringpi/0001-Adjust-for-buildroot-build.patch