package/lua-gd: compile with -fPIC
authorFrancois Perrad <fperrad@gmail.com>
Sun, 31 Mar 2019 16:01:37 +0000 (18:01 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 31 Mar 2019 18:57:34 +0000 (20:57 +0200)
Fixes:

  http://autobuild.buildroot.net/results/756c20a09e3c1bd5295416894e4fbe0ca0db5328

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/lua-gd/lua-gd.mk

index 361929ffa26bc0c16430989de7e914ac494b563d..e9a51a1677fe0f3e1fd59747c142fec1ada68686 100644 (file)
@@ -16,7 +16,7 @@ define LUA_GD_BUILD_CMDS
        $(MAKE) -C $(@D) gd.so \
                GDLIBCONFIG="$(STAGING_DIR)/usr/bin/gdlib-config" \
                CC=$(TARGET_CC) \
-               CFLAGS="$(TARGET_CFLAGS) -DVERSION=\\\"$(GD_VERSION)r3\\\"" \
+               CFLAGS="$(TARGET_CFLAGS) -fPIC -DVERSION=\\\"$(GD_VERSION)r3\\\"" \
                LFLAGS="-shared -lgd"
 endef