fix python compile error (#1455)
authorFelix Fietkau <nbd@openwrt.org>
Sat, 24 Mar 2007 19:01:15 +0000 (19:01 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 24 Mar 2007 19:01:15 +0000 (19:01 +0000)
SVN-Revision: 6676

lang/python/Makefile
lang/python/patches/100-compile_fix.patch [new file with mode: 0644]

index 6848275..fc81620 100644 (file)
@@ -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 (file)
index 0000000..932347a
--- /dev/null
@@ -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)