From 60da771a80350998d6ac8ad31977c07f991717b6 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 25 May 2015 20:03:56 +0200 Subject: [PATCH] osx/homebrew: use --without-json and --without-snmp to avoid autodetection --- osx/lldpd.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osx/lldpd.rb b/osx/lldpd.rb index a260169b..221109b3 100644 --- a/osx/lldpd.rb +++ b/osx/lldpd.rb @@ -27,8 +27,8 @@ class Lldpd < Formula "--with-launchddaemonsdir=no", "CPPFLAGS=-I#{readline.include} -DRONLY=1", "LDFLAGS=-L#{readline.lib}"] - args << "--with-snmp" if build.with? "snmp" - args << "--with-json" if build.with? "json" + args << build.with?("snmp") ? "--with-snmp" : "--without-snmp" + args << build.with?("json") ? "--with-json" : "--without-json" system "./configure", *args system "make" -- 2.39.5