On Dec 16, 2008, at 11:09 PM, Graham Dumpleton wrote:

>
> 2008/12/17 Reed O'Brien <[email protected]>:
>>>> configure-options =
>>>>      CFLAGS="-fPIC -L/usr/lib64 -I${python:location}/include -L$
>>>> {python:location}/lib"
>>>>      CXXFLAGS="-L/usr/lib64 -I${python:location}/include -L$
>>>> {python:location}/lib"
>>>>      LDFLAGS="-Wl,-L${python:location}/lib -F${python:location}  -
>>>> Wl,-rpath,${python:location}/lib/python2.5/config/"
>>>>      --with-apxs=${apache:location}/bin/apxs
>>>>      --with-python=${python:location}/bin/python
>>>
>>> It is that LDFLAGS here is using -Wl, is the problem as my new
>>> configure script also adds that. Had to do this as otherwise will  
>>> not
>>> work with APR 1.4 used in Apache 2.3/2.4. I will need to be a bit
>>> smarter and not add it if already present.
>>>
>>>
>>>> this is likely an issue with my LDFLAGS, but I need them to work as
>>>> such...
>>>
>>> If this is your configure options, just drop the -Wl, prefix to
>>> options and see what happens.
>>
>> -Wl,-rpath,${python:location}/lib/python2.5/config/
>>
>> IIRC, I need to get rpath-ish linking in MacOSX. See:
>> http://lists.apple.com/archives/Unix-porting/2008/Mar/msg00012.html
>>
>> I suppose I could use @executable_path or something if I need to.
>
> I develop on MacOSX, but then I have never had a need to use -rpath on
> MacOSX as I always use framework builds of Python when playing with
> version of Python compiled from source. When framework builds are
> used, don't need the rpath stuff even if not in standard location.
>
> What port of Python to MacOSX are you using? Native Apple versions,
> MacPorts .... ?

A custom location and not a framework. One issue is that I don't  
understand the Framework system apple uses very well. Another is that  
I develop multiple apps with different versions of Python (and some  
with the same version but different package needs) and I want them to  
link to specific installations of python.

I have found it easiest to just maintain builds of python for specific  
apps (managed with zc.buildout) and link to them...

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to