Date: Thu, 28 Mar 2019 16:08:53 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r497026 - head/x11/eaglemode/files Message-ID: <201903281608.x2SG8r06034461@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Thu Mar 28 16:08:52 2019 New Revision: 497026 URL: https://svnweb.freebsd.org/changeset/ports/497026 Log: Don't generate empty arguments when parsing CFLAGS/CXXFLAGS/LDFLAGS PR: 236730 Submitted by: pkubaj@anongoth.pl Modified: head/x11/eaglemode/files/patch-makers_unicc_plugins_unicc__gnu.pm Modified: head/x11/eaglemode/files/patch-makers_unicc_plugins_unicc__gnu.pm ============================================================================== --- head/x11/eaglemode/files/patch-makers_unicc_plugins_unicc__gnu.pm Thu Mar 28 14:37:33 2019 (r497025) +++ head/x11/eaglemode/files/patch-makers_unicc_plugins_unicc__gnu.pm Thu Mar 28 16:08:52 2019 (r497026) @@ -17,7 +17,7 @@ + push(@args,$isCpp ? $ENV{'CXX'} : $ENV{'CC'}); if (HaveDebug) { push(@args,"-g"); } - push(@args,"-O2"); -+ push(@args,split(/\s+/, $isCpp ? $ENV{'CXXFLAGS'} : $ENV{'CFLAGS'})); ++ push(@args,grep /./, split(/\s+/, $isCpp ? $ENV{'CXXFLAGS'} : $ENV{'CFLAGS'})); if ($isCpp && $GccVersion>=4.7 && $GccVersion<6.1) { push(@args,"-std=c++11"); } @@ -27,7 +27,7 @@ else { - push(@args,"gcc"); + push(@args,$ENV{'CC'}); -+ push(@args,split(/\s+/, $ENV{'LDFLAGS'})); ++ push(@args,grep /./, split(/\s+/, $ENV{'LDFLAGS'})); if (HaveDebug) { push(@args,"-g"); } if ($type eq 'dynlib') { push(@args,$IsDarwin ? "-dynamiclib" : "-shared");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903281608.x2SG8r06034461>