public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
From: Harald Anlauf <anlauf@gmx.de>
To: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Cc: Harald Anlauf via Fortran <fortran@gcc.gnu.org>, rep.dot.nop@gmail.com
Subject: Re: gfortran, OpenMP and static linking
Date: Sun, 4 Apr 2021 22:17:27 +0200	[thread overview]
Message-ID: <trinity-e7570b26-f077-4d67-831e-7f5b6bff521d-1617567447328@3c-app-gmx-bs58> (raw)
In-Reply-To: <20210404124605.02773f74@nbbrfq>

Hi Bernhard,

> $ gfortran -o omp -fopenmp omp.f90 -static -Wl,--whole-archive -lpthread -Wl,--no-whole-archive && OMP_NUM_THREADS=2 ./omp

that does indeed do the trick!

As suggested in your other mail, I should ask Jakub for his opinion.

(Statically compiling/linking on the same machine with the Intel compiler
seems to simply work without similar issues. )

Thanks,
Harald


  reply	other threads:[~2021-04-04 20:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-03 18:55 Harald Anlauf
2021-04-03 21:24 ` Bernhard Reutner-Fischer
2021-04-04 10:46   ` Bernhard Reutner-Fischer
2021-04-04 20:17     ` Harald Anlauf [this message]
2022-09-16 22:51 Andrew Benson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=trinity-e7570b26-f077-4d67-831e-7f5b6bff521d-1617567447328@3c-app-gmx-bs58 \
    --to=anlauf@gmx.de \
    --cc=fortran@gcc.gnu.org \
    --cc=rep.dot.nop@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).