From 4cd9183076f459575914d81232bef1f6e188ffe2 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 24 Mar 2007 19:01:15 +0000 Subject: [PATCH] fix python compile error (#1455) SVN-Revision: 6676 --- lang/python/Makefile | 3 ++- lang/python/patches/100-compile_fix.patch | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 lang/python/patches/100-compile_fix.patch diff --git a/lang/python/Makefile b/lang/python/Makefile index 6848275ba..fc81620d7 100644 --- a/lang/python/Makefile +++ b/lang/python/Makefile @@ -66,8 +66,9 @@ endef MAKE_OPTS:=\ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ - LD_LIBRARY_PATH="$(LD_LIBRARY_PATH)" \ + CROSS_COMPILE=yes \ LD="$(TARGET_CC)" \ + BLDSHARED="$(TARGET_CC) -shared -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \ HOSTPYTHON=./hostpython \ HOSTPGEN=./Parser/hostpgen diff --git a/lang/python/patches/100-compile_fix.patch b/lang/python/patches/100-compile_fix.patch new file mode 100644 index 000000000..932347ab0 --- /dev/null +++ b/lang/python/patches/100-compile_fix.patch @@ -0,0 +1,16 @@ +--- python.old/Makefile.pre.in 2007-03-24 19:55:34.314582384 +0100 ++++ python.dev/Makefile.pre.in 2007-03-24 19:57:05.385737464 +0100 +@@ -750,11 +750,11 @@ + done; \ + done + $(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt +- PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ ++ -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ + $(HOSTPYTHON) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \ + -d $(LIBDEST) -f \ + -x 'badsyntax|site-packages' $(DESTDIR)$(LIBDEST) +- PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ ++ -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ + $(HOSTPYTHON) -Wi -tt -O $(DESTDIR)$(LIBDEST)/compileall.py \ + -d $(LIBDEST) -f \ + -x 'badsyntax|site-packages' $(DESTDIR)$(LIBDEST) -- 2.30.2