libmemcached: don't use -fPIE and -pie when linking statically
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 11 May 2015 20:55:36 +0000 (22:55 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 12 May 2015 14:28:15 +0000 (16:28 +0200)
commitb9fcc83fbe9bcf7a3d58f82c532f36462ba21267
tree9c3a8c0886077a2f152d2a2cb4b0b197c02197e4
parentd1dfad6bce30e59dc1416952bfd383c2af4b8bce
libmemcached: don't use -fPIE and -pie when linking statically

These compiler options shouldn't be used when linking statically, and in
particular FLAT binaries cannot use -fPIE and -pie code, so let's teach
libmemcached to not use such flags in those setups.

Fixes:

  http://autobuild.buildroot.org/results/8cb/8cbf57f9136cb42be31c88e0f1f32d3d2353e5ff/
  and many previous similar build failures

[Peter: rework/reword to do this based on BR2_STATIC_LIBS]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: Romain Naour <romain.naour@openwide.fr>
Tested-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libmemcached/libmemcached.mk