From 05ec4cc2d3285fe8bd0583497df19e61dda8d624 Mon Sep 17 00:00:00 2001
From: James Zern <jzern@google.com>
Date: Tue, 5 Mar 2013 12:31:25 -0800
Subject: [PATCH] libwebp{,decoder}.pc: add pthread flags

expands to e.g., -lpthread/-pthread, etc. if --enable-threading is used
and additional libs/flags are required

Change-Id: I8e8a7b44450bee32ddc58097e1e309d972b1092a
---
 src/libwebp.pc.in        | 2 +-
 src/libwebpdecoder.pc.in | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libwebp.pc.in b/src/libwebp.pc.in
index e9e785d0..733bb6db 100644
--- a/src/libwebp.pc.in
+++ b/src/libwebp.pc.in
@@ -8,4 +8,4 @@ Description: Library for the WebP graphics format
 Version: @PACKAGE_VERSION@
 Cflags: -I${includedir}
 Libs: -L${libdir} -lwebp
-Libs.private: -lm
+Libs.private: -lm @PTHREAD_CFLAGS@ @PTHREAD_LIBS@
diff --git a/src/libwebpdecoder.pc.in b/src/libwebpdecoder.pc.in
index 9a9d16e1..3ef647a9 100644
--- a/src/libwebpdecoder.pc.in
+++ b/src/libwebpdecoder.pc.in
@@ -8,4 +8,4 @@ Description: Library for the WebP graphics format (decode only)
 Version: @PACKAGE_VERSION@
 Cflags: -I${includedir}
 Libs: -L${libdir} -lwebpdecoder
-Libs.private: -lm
+Libs.private: -lm @PTHREAD_CFLAGS@ @PTHREAD_LIBS@