Date: Tue, 12 Dec 2017 02:43:49 +0000 (UTC) From: Johannes M Dieterich <jmd@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r456079 - in head/devel/flang: . files Message-ID: <201712120243.vBC2hnSM094259@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jmd Date: Tue Dec 12 02:43:49 2017 New Revision: 456079 URL: https://svnweb.freebsd.org/changeset/ports/456079 Log: 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 Modified: head/devel/flang/Makefile head/devel/flang/files/flang.in Modified: head/devel/flang/Makefile ============================================================================== --- head/devel/flang/Makefile Tue Dec 12 02:40:39 2017 (r456078) +++ head/devel/flang/Makefile Tue Dec 12 02:43:49 2017 (r456079) @@ -3,7 +3,7 @@ PORTNAME= flang DISTVERSION= 5.0-20171019 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel MAINTAINER= jmd@FreeBSD.org Modified: head/devel/flang/files/flang.in ============================================================================== --- head/devel/flang/files/flang.in Tue Dec 12 02:40:39 2017 (r456078) +++ head/devel/flang/files/flang.in Tue Dec 12 02:43:49 2017 (r456079) @@ -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 $@
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712120243.vBC2hnSM094259>