summaryrefslogtreecommitdiff
path: root/package/python2/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/python2/Makefile')
-rw-r--r--package/python2/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/python2/Makefile b/package/python2/Makefile
index 94f63f8ba..a3d23a0f6 100644
--- a/package/python2/Makefile
+++ b/package/python2/Makefile
@@ -85,6 +85,8 @@ $(eval $(call PKG_mod_template,PYTHON2_MOD_NCURSES,_curses))
$(eval $(call PKG_mod_template,PYTHON2_MOD_SSL,_ssl))
$(eval $(call PKG_mod_template,PYTHON2_MOD_READLINE,readline))
+HOST_CFLAGS+= -fPIC
+
AUTOTOOL_STYLE:= autoreconf
MAKE_ENV+= HOSTPGEN=$(STAGING_HOST_DIR)/usr/bin/pgen
CONFIGURE_ENV+= ac_cv_have_long_long_format=yes \
@@ -101,7 +103,6 @@ HOST_CONFIGURE_ARGS+= --with-threads \
--disable-shared \
--disable-toolbox-glue \
--without-cxx-main
-CFLAGS_FOR_BUILD+= -fPIC
hostpre-configure:
$(CP) $(TOPDIR)/package/python2/files/patch-Lib_distutils_sysconfig_py $(WRKBUILD)