diff options
author | jmd <jmd@FreeBSD.org> | 2017-12-12 10:43:49 +0800 |
---|---|---|
committer | Koop Mast <kwm@rainbow-runner.nl> | 2018-02-04 06:07:26 +0800 |
commit | ced6558cc27a00d81b0e6eaa6fae84b51ef2b633 (patch) | |
tree | 681c6c75b3669440e409808acc8877c4832898d9 /devel | |
parent | cd4bb5c12620edb484af28880dae739e37448b56 (diff) | |
download | freebsd-ports-gnome-ced6558cc27a00d81b0e6eaa6fae84b51ef2b633.tar.gz freebsd-ports-gnome-ced6558cc27a00d81b0e6eaa6fae84b51ef2b633.tar.zst freebsd-ports-gnome-ced6558cc27a00d81b0e6eaa6fae84b51ef2b633.zip |
devel/flang: silence warnings caused by the wrapper script shortcomings and only add linking flags if needed.
PR: 220588
Reviewed by: swills (mentor)
Approved by: swills (mentor)
Obtained from: PR220588 (with changes)
Differential Revision: https://reviews.freebsd.org/D13371
Diffstat (limited to 'devel')
-rw-r--r-- | devel/flang/Makefile | 2 | ||||
-rw-r--r-- | devel/flang/files/flang.in | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/devel/flang/Makefile b/devel/flang/Makefile index d0654d5c3ac3..3f27ff8738f0 100644 --- a/devel/flang/Makefile +++ b/devel/flang/Makefile @@ -3,7 +3,7 @@ PORTNAME= flang DISTVERSION= 5.0-20171019 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel MAINTAINER= jmd@FreeBSD.org diff --git a/devel/flang/files/flang.in b/devel/flang/files/flang.in index a1428ef64fba..39d67e8c85ff 100644 --- a/devel/flang/files/flang.in +++ b/devel/flang/files/flang.in @@ -1,2 +1,10 @@ #!/bin/sh -%%PREFIX%%/flang/bin/flang -L%%PREFIX%%/flang/lib -lflang -lflangmain -lflangrti -lompstub -lexecinfo -I%%PREFIX%%/flang/include $@ +FLANG_CFS="-I%%PREFIX%%/flang/include" +FLANG_LFS="-L%%PREFIX%%/flang/lib -lflang -lflangmain -lflangrti -lompstub -lexecinfo" +for arg in $@; do + case "$arg" in + -c|-E) FLANG_LFS="";; + esac +done + +exec %%PREFIX%%/flang/bin/flang $FLANG_LFS $FLANG_CFS $@ |