From Thomas Jahns@jahns@idontlikespam.dkrz.de to comp.lang.fortran on Thu Nov 7 13:41:59 2024
From Newsgroup: comp.lang.fortran
Please excuse my asking about something that's not strictly Fortran the language
but rather a very specific implementation. I figured this might be the place to
find someone knowledgeable about this.
I've tried out the flang-new component of llvm 18.1.6 recently, but stumbled when building a shared library on RHEL 8 Linux: the library code from libFortranRuntime.a and libFortranDecimal.a is always pulled into the shared object. That probably is fine for a library intended to be used from other language code as a plugin for e.g. Python but rather impractical for a library meant to be used from a binary also built with flang-new. Besides adding unnecessary code to the build that also sets up everything needed for a later version conflict when the library built with an older version of flang-new is used by a program built with a newer version.
I can't seem to make flang-new stop pulling its run-time library into the shared
library, specifically the options -nostdlib and -nodefaultlibs seem to be non-working for flang-new.
If anyone knows how to solve this problem, please give a hint.
Thomas
--- Synchronet 3.20a-Linux NewsLink 1.114
Who's Online
Recent Visitors
Microbot
Sat Aug 23 00:05:56 2025
from
Moore, Ok
via
Telnet
Noozle
Fri Aug 22 11:07:42 2025
from
Noozle City
via
Telnet
Microbot
Fri Aug 22 01:53:59 2025
from
Moore, Ok
via
Telnet
Microbot
Thu Aug 21 03:21:53 2025
from
Moore, Ok
via
Telnet