From: nbd Date: Sat, 24 Mar 2007 19:01:15 +0000 (+0000) Subject: fix python compile error (#1455) X-Git-Url: http://git.archive.openwrt.org/?a=commitdiff_plain;h=f2a995264141544bc1957897751fff6f642782dd;p=packages.git fix python compile error (#1455) git-svn-id: svn://svn.openwrt.org/openwrt/packages@6676 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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)