diff --git a/plugins/input/osm/build.py b/plugins/input/osm/build.py index 5781fb866..fdc815d27 100644 --- a/plugins/input/osm/build.py +++ b/plugins/input/osm/build.py @@ -42,7 +42,10 @@ plugin_env['LIBS'] = [] if env['RUNTIME_LINK'] == 'static': # pkg-config is more reliable than pg_config across platforms cmd = 'pkg-config libcurl --libs --static' - plugin_env.ParseConfig(cmd) + try: + plugin_env.ParseConfig(cmd) + except OSError, e: + plugin_env.Append(LIBS='curl') else: plugin_env.Append(LIBS='curl') diff --git a/plugins/input/postgis/build.py b/plugins/input/postgis/build.py index 586dc4f09..00791146b 100644 --- a/plugins/input/postgis/build.py +++ b/plugins/input/postgis/build.py @@ -40,7 +40,10 @@ plugin_env['LIBS'] = [] if env['RUNTIME_LINK'] == 'static': # pkg-config is more reliable than pg_config across platforms cmd = 'pkg-config libpq --libs --static' - plugin_env.ParseConfig(cmd) + try: + plugin_env.ParseConfig(cmd) + except OSError, e: + plugin_env.Append(LIBS='pq') else: plugin_env.Append(LIBS='pq')