Specify Libs.private for the pkg-config file
Only used when building the static lib for its dependencies, since the shared lib automatically handles its own dependencies.
This commit is contained in:
parent
61de399806
commit
a2c24ff946
@ -1261,8 +1261,19 @@ SET(libdir "\${exec_prefix}/${CMAKE_INSTALL_LIBDIR}")
|
|||||||
SET(bindir "\${exec_prefix}/${CMAKE_INSTALL_BINDIR}")
|
SET(bindir "\${exec_prefix}/${CMAKE_INSTALL_BINDIR}")
|
||||||
SET(includedir "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}")
|
SET(includedir "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}")
|
||||||
SET(PACKAGE_VERSION "${LIB_VERSION}")
|
SET(PACKAGE_VERSION "${LIB_VERSION}")
|
||||||
|
SET(PKG_CONFIG_CFLAGS )
|
||||||
|
SET(PKG_CONFIG_PRIVATE_LIBS )
|
||||||
IF(LIBTYPE STREQUAL "STATIC")
|
IF(LIBTYPE STREQUAL "STATIC")
|
||||||
SET(PKG_CONFIG_CFLAGS -DAL_LIBTYPE_STATIC ${PKG_CONFIG_CFLAGS})
|
SET(PKG_CONFIG_CFLAGS -DAL_LIBTYPE_STATIC)
|
||||||
|
FOREACH(FLAG ${LINKER_FLAGS} ${EXTRA_LIBS} ${MATH_LIB})
|
||||||
|
# If this is already a linker flag, or is a full path+file, add it
|
||||||
|
# as-is. Otherwise, it's a name intended to be dressed as -lname.
|
||||||
|
IF(FLAG MATCHES "^-.*" OR EXISTS "${FLAG}")
|
||||||
|
SET(PKG_CONFIG_PRIVATE_LIBS "${PKG_CONFIG_PRIVATE_LIBS} ${FLAG}")
|
||||||
|
ELSE()
|
||||||
|
SET(PKG_CONFIG_PRIVATE_LIBS "${PKG_CONFIG_PRIVATE_LIBS} -l${FLAG}")
|
||||||
|
ENDIF()
|
||||||
|
ENDFOREACH()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
# End configuration
|
# End configuration
|
||||||
|
@ -8,4 +8,5 @@ Description: OpenAL is a cross-platform 3D audio API
|
|||||||
Requires: @PKG_CONFIG_REQUIRES@
|
Requires: @PKG_CONFIG_REQUIRES@
|
||||||
Version: @PACKAGE_VERSION@
|
Version: @PACKAGE_VERSION@
|
||||||
Libs: -L${libdir} -l@LIBNAME@ @PKG_CONFIG_LIBS@
|
Libs: -L${libdir} -l@LIBNAME@ @PKG_CONFIG_LIBS@
|
||||||
|
Libs.private:@PKG_CONFIG_PRIVATE_LIBS@
|
||||||
Cflags: -I${includedir} -I${includedir}/AL @PKG_CONFIG_CFLAGS@
|
Cflags: -I${includedir} -I${includedir}/AL @PKG_CONFIG_CFLAGS@
|
||||||
|
Loading…
x
Reference in New Issue
Block a user