Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Static linking with XLF



Hi,

Actually I did a little bit test on this issue, so far I don't have
better idea. However this might be a clue. I have a test fortran file
like this:
[code]
       print *,"test"
       end
[/code]

This is what I did:
[CLI]
$ xlf -O2 -qarch=g5 -c test.f
$ gcc -static-libgcc -o test.exe test.o
/opt/ibmcmp/xlf/8.1/lib/libxlf90.a /opt/ibmcmp/xlf/8.1/lib/libxl.a
$ ./test.exe
 test
[/CLI]

-- 
Mengjuei

On Mon, 03 Jan 2005 13:49:58 -0500, Craig Hunter <email@hidden> wrote:
> Has anyone come up with a good way to force static linking with IBM XLF?  I
> remember that we can hide one of XLF's library directories to get a similar
> effect, but I wonder if there's a more graceful way to do it.  In addition
> to being a hassle for software distribution, XLF's dynamic linking is even
> causing us headaches when transferring executables among machines with
> slightly different revisions of XLF.  I still can't believe they don't offer
> a compiler flag for static linking!
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Fortran-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/fortran-dev/email@hidden

This email sent to email@hidden

References: 
 >Static linking with XLF (From: Craig Hunter <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.