Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: refactor pkg-config for shared libraries #1603

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! avoid one pkg-config call
  • Loading branch information
jbergstroem committed May 4, 2015
commit 4365f34fd5fe4eb1125ec22f17232a51bee15fa5
8 changes: 3 additions & 5 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,6 @@ def b(value):
def pkg_config(pkg):
pkg_config = os.environ.get('PKG_CONFIG', 'pkg-config')
pkg_config_args = '--silence-errors'
try:
subprocess.check_output([pkg_config, '--version'])
except OSError:
# no pkg-config/pkgconf installed
return (None, None)

retval = ()
for flag in ['--libs', '--cflags']:
Expand All @@ -358,6 +353,9 @@ def pkg_config(pkg):
except subprocess.CalledProcessError:
# most likely missing a .pc-file
val = None
except OSError:
# no pkg-config/pkgconf installed
return (None, None)

retval += (val,)

Expand Down