File: 0030-flang-support.patch

package info (click to toggle)
libtool 2.5.4-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,688 kB
  • sloc: sh: 58,532; ansic: 4,292; makefile: 883
file content (22 lines) | stat: -rw-r--r-- 833 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Author: Alastair McKinstry <mckinstry@debian.org>
Description: Support for Flang Fortran compiler
Last-Updated: 2019-02-18
Forwarded: no

Index: libtool-2.5.4/m4/libtool.m4
===================================================================
--- libtool-2.5.4.orig/m4/libtool.m4
+++ libtool-2.5.4/m4/libtool.m4
@@ -4851,6 +4851,12 @@ m4_if([$1], [CXX], [
 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
         ;;
+      # flang / f18. f95 an alias for gfortran or flang on Debian
+      flang* | f18* | f95*)
+	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+        ;;
       # icc used to be incompatible with GCC.
       # ICC 10 doesn't accept -KPIC any more.
       icc* | ifort*)