Compiling Fortran code for Python module

Frank Schima macsforever2000 at macports.org
Fri May 3 10:21:33 PDT 2013


On May 2, 2013, at 5:15 PM, Ryan Schmidt <ryandesign at macports.org> wrote:

> 
> On May 2, 2013, at 17:35, Frank Schima wrote:
> 
>> As an update. I added the following line to the Portfile which fixed the Fortran code and then goes on to break the C code being compiled later:
>> 
>>    build.env-append     LDFLAGS=-undefined dynamic_lookup -bundle
>> 
>> /usr/bin/clang -bundle -undefined dynamic_lookup -L/opt/local/lib dynamic_lookup build/temp.macosx-10.8-x86_64-2.7/qutip/cyQ/spmatfuncs.o -Lbuild/temp.macosx-10.8-x86_64-2.7 -o build/lib.macosx-10.8-x86_64-2.7/qutip/cyQ/spmatfuncs.so
>> clang: error: no such file or directory: 'dynamic_lookup'
> 
> Surely you need to quote that?
> 
> build.env-append     LDFLAGS="-undefined dynamic_lookup -bundle"

When I do that, it acts as if I have cleared the LDFLAGS and fails with the original error where it cannot find even the python libraries when compiling Fortran. I also tried single quotes and the same error occurred. 


-Frank





More information about the macports-dev mailing list