summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2013-07-27 01:59:16 +0300
committerMartin Storsjo <martin@martin.st>2013-07-27 02:01:33 +0300
commit59ff381ee464da358c0a48b10b10bd3650533886 (patch)
tree383d32a947c01d1fae27c15aa74b012cbc4d5abd
parenta63897ce4e4f244bb7c5b4916574152b2d0c1db7 (diff)
downloadfdk-aac-dabplus-59ff381ee464da358c0a48b10b10bd3650533886.tar.gz
fdk-aac-dabplus-59ff381ee464da358c0a48b10b10bd3650533886.tar.bz2
fdk-aac-dabplus-59ff381ee464da358c0a48b10b10bd3650533886.zip
Include dependency libs (-lm) in the pkg-config file
-rw-r--r--configure.ac4
-rw-r--r--fdk-aac.pc.in3
2 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index c52d0b9..82e3237 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,7 +27,11 @@ dnl soname version to use
dnl goes by ‘current[:revision[:age]]’ with the soname ending up as
dnl current.age.revision
FDK_AAC_VERSION=0:2:0
+
+AS_IF([test x$enable_shared = xyes], [LIBS_PRIVATE=$LIBS], [LIBS_PUBLIC=$LIBS])
AC_SUBST(FDK_AAC_VERSION)
+AC_SUBST(LIBS_PUBLIC)
+AC_SUBST(LIBS_PRIVATE)
AC_CONFIG_FILES([Makefile
fdk-aac.pc])
diff --git a/fdk-aac.pc.in b/fdk-aac.pc.in
index 50fa1d5..2edac45 100644
--- a/fdk-aac.pc.in
+++ b/fdk-aac.pc.in
@@ -6,5 +6,6 @@ includedir=@includedir@
Name: Fraunhofer FDK AAC Codec Library
Description: AAC codec library
Version: @PACKAGE_VERSION@
-Libs: -L${libdir} -lfdk-aac
+Libs: -L${libdir} -lfdk-aac @LIBS_PUBLIC@
+Libs.private: @LIBS_PRIVATE@
Cflags: -I${includedir}