Commit c7b32d94 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

medialibrary.pc: List the frameworks we need when building on macOS

parent d904c0bd
...@@ -99,6 +99,7 @@ dnl Specify -lpthread as part of Libs.private, in case of a static build ...@@ -99,6 +99,7 @@ dnl Specify -lpthread as part of Libs.private, in case of a static build
OBJCXX="${OBJCXX} -stdlib=libc++ -std=c++11" OBJCXX="${OBJCXX} -stdlib=libc++ -std=c++11"
OBJCXXFLAGS="${OBJCXXFLAGS} -D_INTL_REDIRECT_MACROS ${ARCH_flag}" OBJCXXFLAGS="${OBJCXXFLAGS} -D_INTL_REDIRECT_MACROS ${ARCH_flag}"
LDFLAGS="${LDFLAGS} -Wl,-headerpad_max_install_names ${ARCH_flag}" LDFLAGS="${LDFLAGS} -Wl,-headerpad_max_install_names ${ARCH_flag}"
ML_EXTRA_LIBS="-Wl,-framework,Foundation"
AC_EGREP_CPP(yes, AC_EGREP_CPP(yes,
[#import <TargetConditionals.h> [#import <TargetConditionals.h>
...@@ -312,5 +313,7 @@ medialibrary.pc ...@@ -312,5 +313,7 @@ medialibrary.pc
]) ])
AC_SUBST([THREAD_LIBS]) AC_SUBST([THREAD_LIBS])
AC_SUBST([ML_EXTRA_LIBS])
AC_SUBST([ML_EXTRA_PRIVATE_LIBS])
AC_OUTPUT AC_OUTPUT
...@@ -7,5 +7,5 @@ Name: medialibrary ...@@ -7,5 +7,5 @@ Name: medialibrary
Description: cross platform medialibrary Description: cross platform medialibrary
Version: @PACKAGE_VERSION@ Version: @PACKAGE_VERSION@
Cflags: -I${includedir} Cflags: -I${includedir}
Libs: -L${libdir} -lmedialibrary Libs: -L${libdir} -lmedialibrary @ML_EXTRA_LIBS@
Libs.private: @SQLITE_LIBS@ @LIBJPEG_LIBS@ @THREAD_LIBS@ Libs.private: @SQLITE_LIBS@ @LIBJPEG_LIBS@ @THREAD_LIBS@ @ML_EXTRA_PRIVATE_LIBS@
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment