From: Vincent Bernat Date: Sat, 8 Aug 2015 19:16:52 +0000 (+0200) Subject: osx: fix configure command line in Homebrew X-Git-Tag: 0.7.17~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f363bce70a0906dd78bad6a9dedf0b8546172f06;p=thirdparty%2Flldpd.git osx: fix configure command line in Homebrew The array concat operator has an higher precedence than the ternary operator in Ruby. --- diff --git a/osx/lldpd.rb b/osx/lldpd.rb index 6e166cc8..85545003 100644 --- a/osx/lldpd.rb +++ b/osx/lldpd.rb @@ -24,8 +24,8 @@ class Lldpd < Formula "--with-launchddaemonsdir=no", "CPPFLAGS=-I#{readline.include} -DRONLY=1", "LDFLAGS=-L#{readline.lib}"] - args << build.with?("snmp") ? "--with-snmp" : "--without-snmp" - args << build.with?("json") ? "--with-json" : "--without-json" + args << (build.with?("snmp") ? "--with-snmp" : "--without-snmp") + args << (build.with?("json") ? "--with-json" : "--without-json") system "./configure", *args system "make"