Deutsch English Français Italiano |
<vgicip$2ljnv$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Thomas Jahns <jahns@idontlikespam.dkrz.de> Newsgroups: comp.lang.fortran Subject: flang-new shared object linking Date: Thu, 7 Nov 2024 13:41:59 +0100 Organization: A noiseless patient Spider Lines: 21 Message-ID: <vgicip$2ljnv$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 07 Nov 2024 13:42:01 +0100 (CET) Injection-Info: dont-email.me; posting-host="34cbad5baf07a1cb3563ce8764c032a1"; logging-data="2805503"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Ozr+8Sgf6CDOJpyIMwt0i" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Cancel-Lock: sha1:CUz027zJrL8ExNGi8S1/ReHSKQk= Content-Language: en-US X-Mozilla-News-Host: snews://news.gwdg.de:563 Bytes: 2138 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