I'v checked this again. setup.py seems to see different CPP/LD flags the the ones in the environment - and I don't know why, yet.
The attached logs show this. I removed the patch and modified Makefile.pre.in
as follows
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 99ca8be..4ecee1f 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -399,9 +399,9 @@ platform: $(PYTHON_FOR_BUILD)
# Build the shared modules
sharedmods: $(BUILDPYTHON) $(PYTHON_FOR_BUILD)
- @case "$(MAKEFLAGS)" in \
- s|*\ s|s\ *|*\ s\ *) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)'
OPT='$(OPT)' $(PYTHON_FOR_BUILD) -E $(srcdir)/setup.py -q build;; \
- *) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)'
$(PYTHON_FOR_BUILD) -E $(srcdir)/setup.py build;; \
+ case "$(MAKEFLAGS)" in \
+ s|*\ s|s\ *|*\ s\ *) $(RUNSHARED) CC='$(CC)' CPPFLAGS='$(CPPFLAGS)'
LDFLAGS='$(LDFLAGS)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' $(PYTHON_FOR_BUILD)
-E $(srcdir)/setup.py -q build;; \
+ *) $(RUNSHARED) CC='$(CC)' CPPFLAGS='$(CPPFLAGS)' LDFLAGS='$(LDFLAGS)'
LDSHARED='$(BLDSHARED)' OPT='$(OPT)' $(PYTHON_FOR_BUILD) -E $(srcdir)/setup.py
build;; \
esac
# Build static library
The attached logs show the relevant parts of the build process. May be one of
you can give a hint, why setup.py sees a different environment in this case.
Am 13.03.2011 um 13:53 schrieb Michael Olbrich:
> I've looked at this again. See below.
With kind regards
Daniel Kriesten
--
Daniel Kriesten
Chair for Circuit and System Design
Chemnitz University of Technology, Reichenhainer Str. 70, D-09126 Chemnitz
Phone: +49 371 531-33158, Fax: +49 371 531-833158
http://www.tu-chemnitz.de/etit/sse
python1.buildlog
Description: Binary data
-- ptxdist mailing list [email protected]
