liblinear: fix shared library build when -fPIC is required
authorBaruch Siach <baruch@tkos.co.il>
Mon, 22 Dec 2014 17:50:38 +0000 (19:50 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 23 Dec 2014 10:32:59 +0000 (11:32 +0100)
commita7bae7f5b3bf6c235cd363a260d3604ccdc21e83
tree1f4f85968ceec1f4b80d3256fe8b53ff5a7ea88c
parent2b9b4f46e0bcd009b46892d2d59ce0421608f9f4
liblinear: fix shared library build when -fPIC is required

Some architectures require building with -fPIC for shared libraries. -fPIC is
present in upstream Makefile but we override CFLAGS when running make. Add
-fPIC back when building shared libraries.

Fixes:
http://autobuild.buildroot.net/results/5d6/5d63bf2f1af7977ff81116e767b399d4d0a30a99/
http://autobuild.buildroot.net/results/47d/47d62d66c65cc77da9d48981ca6612257e616a90/
http://autobuild.buildroot.net/results/c81/c816a0982733595438ed7ad90ae1231001c285cc/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/liblinear/liblinear.mk