baresip: fix build failure on 32bit x86 targets 225/head
authorSebastian Kemper <sebastian_ml@gmx.net>
Thu, 7 Dec 2017 20:32:45 +0000 (21:32 +0100)
committerSebastian Kemper <sebastian_ml@gmx.net>
Thu, 7 Dec 2017 20:32:56 +0000 (21:32 +0100)
commitd3a784ca7829973a7ac0379ba33b2f0ba1597941
tree188d9ae7617197149e5246d1a23866ce9c3600c7
parent37603d22fb95ce810b5a8ed99dec758e24760abb
baresip: fix build failure on 32bit x86 targets

re and baresip builds for 32bit x86 targets are currently failing:

build-i386/sip/auth.o: In function `sip_auth_encode':
/build/lede-snapshots/i386_pentium/build/sdk/build_dir/target-i386_pentium_musl/re-0.5.6/src/sip/auth.c:279: undefined reference to `__stack_chk_fail_local'

The undefined references occur because there is no linking done to ssp.
Fix this by setting LD to TARGET_CC, so ld is not called directly. This
also means one patch is not needed anymore.

Do the same for rem and restund as they basically all share the same
build system.

Compile-tested for x86, x86_64 and mips.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
libs/re/Makefile
libs/re/patches/003-fix-linker-call.patch [deleted file]
libs/rem/Makefile
net/baresip/Makefile
net/restund/Makefile