From fe9e709254c3bae8da5428f06a37900269537b64 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Wed, 14 Aug 2019 19:55:45 +0200 Subject: [PATCH] package/libpri: add -fPIC 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 Signed-off-by: Thomas Petazzoni --- package/libpri/libpri.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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