From cced837600a0739c5f6e4260ffaa5986ef0a15e9 Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Sat, 12 Jan 2013 22:01:21 -0800 Subject: [PATCH] Fixes for SConstruct on FreeBSD. --- SConstruct | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 0800c402b7..53745565f8 100644 --- a/SConstruct +++ b/SConstruct @@ -75,10 +75,21 @@ else: ] ) +# Apparently, only linux uses -ldl +if not FreeBSD: + env.Append( + LIBS = [ + 'dl', # dynamic linking for linux + ] + ) + +# Apparently, pkg-config --libs protobuf on bsd fails to provide this necessary include dir. +if FreeBSD: + env.Append(LINKFLAGS = ['-I/usr/local/include']) + env.Append( LIBS = [ 'protobuf', - 'dl', # dynamic linking 'z' ] )