From 17b378c00e46a4168ed8c5b4978e74c0fe831253 Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Sun, 2 Aug 2020 10:15:38 -0400 Subject: [build] SCons build with brotli needs -lm on *BSD --- SConstruct | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index 700123c3..2184fc9f 100644 --- a/SConstruct +++ b/SConstruct @@ -505,7 +505,10 @@ if 1: if env['with_brotli']: if not autoconf.CheckParseConfigForLib('LIBBROTLI', 'pkg-config libbrotlienc --cflags --libs'): fail("Couldn't find libbrotlienc") - autoconf.env.Append(CPPFLAGS = [ '-DHAVE_BROTLI_ENCODE_H', '-DHAVE_BROTLI' ]) + autoconf.env.Append( + CPPFLAGS = [ '-DHAVE_BROTLI_ENCODE_H', '-DHAVE_BROTLI' ], + LIBS = [ 'm' ], + ) if env['with_dbi']: if not autoconf.CheckLibWithHeader('dbi', 'dbi/dbi.h', 'C'): -- cgit v1.2.1