[PATCH] Support for Flang and ARM HPC compiler

[email protected]
Newsgroups gmane.comp.gnu.libtool.patches
Message-ID <[email protected]>
From: Paul Osmialowski <[email protected]>

Signed-off-by: Paul Osmialowski <[email protected]>
---
 m4/libtool.m4 | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/m4/libtool.m4 b/m4/libtool.m4
index b55a6e57..a05232c2 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -4739,6 +4739,12 @@ m4_if([$1], [CXX], [
 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 	;;
+      armflang* | flang*)
+	# Flang and ARM HPC Compiler
+	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -DPIC'
+	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+	;;
       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
         # Portland Group compilers (*not* the Pentium gcc compiler,
 	# which looks to be a dead project)
-- 
2.19.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.