summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2020-08-02 10:15:38 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2020-08-02 10:16:55 -0400
commit17b378c00e46a4168ed8c5b4978e74c0fe831253 (patch)
treeccad7fab8233e1ad2024d167f9edb542e6b68f2d /SConstruct
parentabfa915d978ed980be52ee291ce9784e22dbd1ab (diff)
downloadlighttpd-git-17b378c00e46a4168ed8c5b4978e74c0fe831253.tar.gz
[build] SCons build with brotli needs -lm on *BSD
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct5
1 files changed, 4 insertions, 1 deletions
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'):