Ok, so here is the answer to my question.
Actually, the options seen by setup.py (using sysconfig.get_config_var(<name>)
and sysconfig.get_config_vars() are taken from
.../platform-<myplatform>/sysroot-host/bin/python2.6
krid@dsm1 $ strings bin/python2.6 |grep sysroot
/mnt/morespace/krid/ptxdist/ptxdist-VitaSense/platform-dki/sysroot-host/lib:/this/is/a/long/path/to/make/host/tools/relocateable/with/chrpath/when/using/dev/packages
Looking at the distutils package it seems C/CPP/LDFlags are taken into account
in some cases, but not in this particular one. So may be one of you has a
better solution to get things done right?
Am 18.03.2011 um 11:49 schrieb Daniel Kriesten:
> '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.
Mit freundlichen Grüßen
Daniel Kriesten
--
Daniel Kriesten
Professur Schaltkreis- und Systementwurf
Technische Universität Chemnitz, Reichenhainer Str. 70, 09126 Chemnitz
Tel: +49 371 531 33058 Fax: +49 371 531 833058
http://www.tu-chemnitz.de/etit/sse
--
ptxdist mailing list
[email protected]