summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/heirloom-mailx/heirloom-mailx.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/heirloom-mailx/heirloom-mailx.mk b/package/heirloom-mailx/heirloom-mailx.mk
index 73434796b7..044cd8cf3a 100644
--- a/package/heirloom-mailx/heirloom-mailx.mk
+++ b/package/heirloom-mailx/heirloom-mailx.mk
@@ -18,8 +18,11 @@ define HEIRLOOM_MAILX_CONFIGURE_CMDS
(cd $(@D); $(TARGET_CONFIGURE_OPTS) $(SHELL) ./makeconfig)
endef
+# -fPIC is needed to build with NIOS2 toolchains.
define HEIRLOOM_MAILX_BUILD_CMDS
- $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
+ $(TARGET_CONFIGURE_OPTS) $(MAKE) \
+ CFLAGS="$(TARGET_CFLAGS) -fPIC" \
+ -C $(@D)
endef
define HEIRLOOM_MAILX_INSTALL_TARGET_CMDS
OpenPOWER on IntegriCloud