svn commit: r497026 - head/x11/eaglemode/files
Dmitry Marakasov
amdmi3 at FreeBSD.org
Thu Mar 28 16:08:54 UTC 2019
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 at 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");
More information about the svn-ports-all
mailing list