[gambit-list] Re: changing the ld options on dynamically loaded files

Bradley Lucier lucier at math.purdue.edu
Sun Aug 28 20:55:03 EDT 2005


On Aug 25, 2005, at 10:42 PM, Bradley Lucier wrote:

> Marc:
>
> The following command line seems to work to do what I want to do.   
> Perhaps you should put something like this in the documentation.
>
> This is with gcc.
>
> Brad
>
> peano-115% gsc -dynamic -ld-options "-Wl,-R/export/users/lucier/ 
> lang/scheme/Arrays/srfi/fMRI-test/ /export/users/lucier/lang/scheme/ 
> Arrays/srfi/fMRI-test/libfftw.so.2" all.scm

Well, that works on Linux, does anyone know what will work on MacOS X  
10.4.2?  I tried the following, but no luck:

> [Bradley-Luciers-Computer:~/Desktop/srfi/fMRI] lucier% gsc -dynamic  
> -ld-options "-L/Users/lucier/Desktop/srfi/fMRI libfftw.dylib" all.scm
> [Bradley-Luciers-Computer:~/Desktop/srfi/fMRI] lucier% gsc
> Gambit Version 4.0 beta 14
>
> > (load "all")
> dyld: NSLinkModule() error
> dyld: Library not loaded: /usr/local/lib/libfftw.2.dylib
>   Referenced from: /Users/lucier/Desktop/srfi/fMRI/all.o2
>   Reason: image not found
> Trace/BPT trap
> [Bradley-Luciers-Computer:~/Desktop/srfi/fMRI] lucier% gsc -dynamic  
> -ld-options "-L/Users/lucier/Desktop/srfi/fMRI -R/Users/lucier/ 
> Desktop/srfi/fMRI libfftw.dylib" all.scm
> powerpc-apple-darwin8-gcc-4.0.0: unrecognized option '-R/Users/ 
> lucier/Desktop/srfi/fMRI'




More information about the Gambit-list mailing list