Skip to content

Commit

Permalink
Merge pull request #4171 from msitu/decode_darwin_value
Browse files Browse the repository at this point in the history
fix pg_config error for darwin os
  • Loading branch information
artemp committed Sep 4, 2020
2 parents bc01c22 + a103f5e commit 23b8ecc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ def parse_config(context, config, checks='--libs --cflags'):
# and thus breaks knowledge below that gdal worked
# TODO - upgrade our scons logic to support Framework linking
if env['PLATFORM'] == 'Darwin':
value = call(cmd,silent=True)
value = call(cmd,silent=True).decode("utf-8")
if value and '-framework GDAL' in value:
env['LIBS'].append('gdal')
if os.path.exists('/Library/Frameworks/GDAL.framework/unix/lib'):
Expand Down

0 comments on commit 23b8ecc

Please sign in to comment.