I am trying to recompile some fortran code with shared libraries
under IBM's XL Fortran. However since XL doesn't have a 
-dynamiclib flag I need to change my link line to use -Wl,
instead. However for both g77 and XL this doesn't seem to
work the same as...

g77 -dynamiclib -flat_namespace -undefined suppress -single_module -fno-common  
common2.o -o libcommon2.dylib

When I use the -Wl, instead...

g77 -Wl,-dylib -Wl,-flat_namespace -Wl,"-undefined,suppress" -Wl,-single_module 
-fno-common common2.o -o libcommon2.dylib

...I get the error...

/usr/bin/ld: warning -undefined suppress disables -prebind
/usr/bin/ld: /usr/lib/crt1.o LC_LOAD_DYLINKER load command in object file (should not 
be in an input file to the link editor for the output file type MH_DYLIB)
collect2: ld returned 1 exit status

Now since ld doesn't have a -dynamiclib flag I assumed -dylib was    
identical. I need to use that because I need -single_module to cope
with the COMMON blocks with generate multiple symbols otherwise
if -multi_module is in use.    
    Any ideas about what the deal is here?
                      Jack


-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to