package/libpri: add -fPIC
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Wed, 14 Aug 2019 17:55:45 +0000 (19:55 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 17 Aug 2019 20:27:47 +0000 (22:27 +0200)
Fixes:
 - https://bugs.buildroot.org/show_bug.cgi?id=11961

[Retrieved (and updated to keep line under 80 characters) from:
https://bugs.buildroot.org/show_bug.cgi?id=11961]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/libpri/libpri.mk

index 2e2d0e8a6c1cfc4b75311e7ca8b1ceaee70464d5..e1fa2abcf5b9332981f6adcb4182250a41a6c6da 100644 (file)
@@ -33,7 +33,8 @@ endif
 LIBPRI_UTILS = pridump pritest rosetest testprilib
 
 define LIBPRI_BUILD_CMDS
-       $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
+       $(TARGET_MAKE_ENV) $(MAKE1) $(TARGET_CONFIGURE_OPTS) \
+               CFLAGS="$(TARGET_CFLAGS) -fPIC" -C $(@D) \
                $(LIBPRI_LIBS) $(LIBPRI_UTILS)
 endef