package/bearssl: needs -fPIC
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Tue, 10 Mar 2020 19:45:46 +0000 (20:45 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 22 Mar 2020 20:57:07 +0000 (21:57 +0100)
Fixes:
 - http://autobuild.buildroot.org/results/e677519c7536447062bf15fb7aa73eded19a6cf6

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Tested-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/bearssl/bearssl.mk

index e85626153ca750bc1bfafe3a1046cd6104c2d005..ff5f4e87b79f501a085446d7d3ac8955998060ea 100644 (file)
@@ -16,6 +16,7 @@ BEARSSL_MAKE_OPTS = \
 
 ifeq ($(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
 BEARSSL_TARGETS += dll
+BEARSSL_MAKE_OPTS += CFLAGS="$(TARGET_CFLAGS) -fPIC"
 endif
 
 ifeq ($(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),y)