GNU bug report logs - #25368
Libtool patch concerning using the NAG fortran compiler as linker

Previous Next

Package: libtool;

Reported by: Juergen Reuter <juergen.reuter <at> desy.de>

Date: Thu, 5 Jan 2017 18:43:01 UTC

Severity: normal

To reply to this bug, email your comments to 25368 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-libtool <at> gnu.org:
bug#25368; Package libtool. (Thu, 05 Jan 2017 18:43:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Juergen Reuter <juergen.reuter <at> desy.de>:
New bug report received and forwarded. Copy sent to bug-libtool <at> gnu.org. (Thu, 05 Jan 2017 18:43:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Juergen Reuter <juergen.reuter <at> desy.de>
To: bug-libtool <at> gnu.org, peter <at> pogma.com
Cc: "whizard <at> desy.de" <whizard <at> desy.de>
Subject: Libtool patch concerning using the NAG fortran compiler as linker
Date: Thu, 5 Jan 2017 19:41:50 +0100
[Message part 1 (text/plain, inline)]
Dear libtool developers,
here is a patch for the current libtool git repo when using the NAG 
Fortran compiler
(nagfor) to link exectuables or libraries. nagfor doesn't accept 
arguments passed twice,
but a setup in the ltmain.in does exactly this when using -openmp as a 
flag. To avoid
hiccups, I added the following patch  (below).
I would be grateful if you could push this to the libtool git repo!
Thanks a lot in advance!
Cheers,
    JRR

Patch:
diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index 4cd3818..d65ea72 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -5176,12 +5176,24 @@ func_mode_link ()

-mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
       |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
-       func_append compiler_flags " $arg"
+        case $CC in
+           nagfor*) ;;
+           *)
+               func_append compiler_flags " $arg"
+               ;;
+       esac
        func_append compile_command " $arg"
        func_append finalize_command " $arg"
        case "$new_inherited_linker_flags " in
            *" $arg "*) ;;
-           * ) func_append new_inherited_linker_flags " $arg" ;;
+           *)
+               case $CC in
+                   nagfor*) ;;
+                   *)
+                       func_append new_inherited_linker_flags " $arg"
+                   ;;
+               esac
+               ;;
        esac
        continue
        ;;


-- 
-------------------------------------
Juergen Reuter
*****
DESY Theory Group
Notkestrasse 85
D-22603 Hamburg
Phone: +49 (0)40 8998-3895
Fax  : +49 (0)40 8998-2777

*****
Skype: jr_reuter
-------------------------------------

[patch_nagfor (text/plain, attachment)]

This bug report was last modified 8 years and 217 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.