Martin, just wondering why swig/python was changed to use the makefile only instead of setup.py? Now we're back to the same problem we had with the wx nviz & vdigit and OSX before I added the ifdef's in the makefiles (then the recent switch to setup.py) -- wrong linking flags are used.
ie:
Python modules on OSX don't link the Python library directly, but instead use "-bundle -undefined dynamic_lookup".
LD should not reuse the global GRASS SHARED_LD because it has the OSX *library* linking flags, which include -dynamiclib which conflicts with the needed -bundle flag.
I can patch Python.make to set PYMOD_LDFLAGS conditionally for darwin, like what I did in nviz/vdigit, and set PYMOD_LD to "$(CXX) -shared". But I'm not sure that PYMOD_LD is appropriate for all platforms (OK on Linux, -shared is ignored on OSX).
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
First Pogril: Why is life like sticking your head in a bucket filled with hyena offal?
Second Pogril: I don't know. Why IS life like sticking your head in a bucket filled with hyena offal?
First Pogril: I don't know either. Wretched, isn't it?
-HitchHiker's Guide to the Galaxy
Hi,
2009/5/25 William Kyngesburye <woklist@kyngchaos.com>:
Martin, just wondering why swig/python was changed to use the makefile only
instead of setup.py? Now we're back to the same problem we had with the wx
they hasn't been used at all. To avoid mess I removed them. Feel free
to update them and put them back.
Martin
--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa
OK.
Is swig even built in a default configuration? It's not in the list of SUBDIRS in the main makefile.
If I cd to swig/python and make, I eventually get an error in proj_wrap because the PROJ include dir is missing from the compile flags, then after adding PROJINC, later in vector_wrap the GEOS include dir (GEOSCFLAGS).
On May 25, 2009, at 2:55 PM, Martin Landa wrote:
Hi,
2009/5/25 William Kyngesburye <woklist@kyngchaos.com>:
Martin, just wondering why swig/python was changed to use the makefile only
instead of setup.py? Now we're back to the same problem we had with the wx
they hasn't been used at all. To avoid mess I removed them. Feel free
to update them and put them back.
Martin
--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
"This is a question about the past, is it? ... How can I tell that the past isn't a fiction designed to account for the discrepancy between my immediate physical sensations and my state of mind?"
- The Ruler of the Universe