>Martin v. Löwis wrote: > >> 2. We have some stuff in non-standard locations here. To build >> properly, I need to tell this to configure (using CXX, CPPFLAGS, >> LD_LIBRARY_PATH). Unfortunately, none of this > gets communicated to >> the setup.py step with its find_library_file() stuff, so it is also >> necessary to either modify setup.py or add a setup.cfg file.
>Why do you say that? If you set CC before invoking configure, >it will get into Makefile, and from there into setup.py. >More generally: setup.py will take everything from Makefile, >so just check whether Makefile looks right. Hmm, I just got it wrong. I did not see that settings like LDFLAGS are noticed by distutils. After quite some tries I can now happily build with - LD_LIBRARY_PATH set (needed to find libstdc++ during configure step) - LDFLAGS set to find the lib dirs - CPPFLAGS set to find the include dirs Then distutils adds the appropriate -Wl,-R stuff; I don´t even need LD_RUN_PATH. Before, I seem to always have left out LDFLAGS. >As for LD_LIBRARY_PATH: If it is set when setup.py is running, >it will certainly apply. However, I really recommend to use >crle(8) instead: > > crle -u -l /opt/sfw/lib > >Then, your users will never have to set LD_LIBRARY_PATH >for /opt/sfw/lib. Nice. I didn´t even know that feature. Reminds me of the possibilty to use relative RPATHs with $ORIGIN, which is (also) little under-documented. But then again I´m no compiler wizard. >> Der Inhalt dieser E-Mail ist vertraulich. >So ein Quatsch. Selbst Google hat jetzt eine Kopie dieser Mail: Wie wahr. Schon mal gegen Windmühlen gekämpft? ;-) Thanks a lot, Holger Der Inhalt dieser E-Mail ist vertraulich. Falls Sie nicht der angegebene Empfänger sind oder falls diese E-Mail irrtümlich an Sie adressiert wurde, verständigen Sie bitte den Absender sofort und löschen Sie die E-Mail sodann. Das unerlaubte Kopieren sowie die unbefugte Übermittlung sind nicht gestattet. Die Sicherheit von Übermittlungen per E-Mail kann nicht garantiert werden. Falls Sie eine Bestätigung wünschen, fordern Sie bitte den Inhalt der E-Mail als Hardcopy an. The contents of this e-mail are confidential. If you are not the named addressee or if this transmission has been addressed to you in error, please notify the sender immediately and then delete this e-mail. Any unauthorized copying and transmission is forbidden. E-Mail transmission cannot be guaranteed to be secure. If verification is required, please request a hard copy version. -- http://mail.python.org/mailman/listinfo/python-list