[3/4] package/libpri: add -fPIC
diff mbox series

Message ID 20190814175546.14670-3-fontaine.fabrice@gmail.com
State Accepted
Headers show
Series
  • [1/4] package/dahdi-linux: bump to version 3.0.0
Related show

Commit Message

Fabrice Fontaine Aug. 14, 2019, 5:55 p.m. UTC
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>
---
 package/libpri/libpri.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/package/libpri/libpri.mk b/package/libpri/libpri.mk
index 2e2d0e8a6c..e1fa2abcf5 100644
--- a/package/libpri/libpri.mk
+++ b/package/libpri/libpri.mk
@@ -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