User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)
Since the Mac OS X linker searchs dynamic libraries first, e.g.,
libx.dylib first and then libx.a, dynamic libraries are used by default.
In order to link the archive libraries, one would need to make sure
dynamic libraries are not used by the linker in resolving symbols.
There can be many ways to achieve this. One way to accomplish this is:
Now you need to modify the XL Fortran configuration file so that the
symbolic links to the archive libraries are used in place of the dynamic
libraries. The configuration file should be in the file
/etc/opt/ibmcmp/xlf/8.1/xlf.cfg if the compiler was installed in the
default installation location. In the configuration file, add the
following text just before the "Common definitions" section:
* Fortran 90 compiler using archive libraries
xlf90_s: use = DEFLT
libraries = -lxlf90_s,-lxlopt,-lxlomp_ser_s,-lxl,-lxlfmath_s
gcc_libs = -lm,-lc,-lgcc,-lSystem
options = -qxlf90=noautodealloc:nosignedzero,-qfree=f90
Therefore, libxlf90_s, libxlomp_ser, libxlfmath_s will be used. You can
do the same to other commands accordingly. Specifically, copy the
stanzas for the xlf commands that are being used and add _s to the name
of the stanza, and to each of xlf90, xlf90_r, xlfmath, xlsmp, and
xlomp_ser that appears in the stanza.
----- Original Message -----
From: "Craig Hunter" <email@hidden>
To: <email@hidden>
Sent: Monday, January 03, 2005 1:49 PM
Subject: Static linking with XLF
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!
Thanks,
Craig
--
Dr. Craig Hunter
NASA Langley Research Center
AAAC/Configuration Aerodynamics Branch
email@hidden (new!!)
(757) 864-3020
(Dual G4 - OS X)
_______________________________________________
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
!DSPAM:41dacda2157741199417861!
_______________________________________________
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