Skip to content

Commit bebbac4

Browse files
committed
(Debian packaging) drop implicit libraries from pkg-config script
1 parent 7eeb438 commit bebbac4

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

debian/changelog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ mongo-c-driver (1.14.0-1) unstable; urgency=medium
33
* New upstream release
44
* Make build reproducible; thanks to Chris Lamb for the patch
55
(Closes: #920411)
6+
* Drop implicit libraries from pkg-config script
67

78
-- Roberto C. Sanchez <[email protected]> Fri, 22 Feb 2019 22:37:09 -0500
89

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Description: Prevent implicit libraries (e.g., pthread, gcc, gcc_s) from ending up in pkg-config script.
2+
Author: Roberto C. Sánchez <[email protected]>
3+
diff --git a/src/libbson/CMakeLists.txt b/src/libbson/CMakeLists.txt
4+
index 6abc1f72f..677192db5 100644
5+
--- a/src/libbson/CMakeLists.txt
6+
+++ b/src/libbson/CMakeLists.txt
7+
@@ -334,7 +334,7 @@ if (ENABLE_APPLE_FRAMEWORK)
8+
endif ()
9+
10+
set (LIBBSON_LIBRARIES "")
11+
-foreach (_lib ${CMAKE_C_IMPLICIT_LINK_LIBRARIES} ${BSON_LIBRARIES})
12+
+foreach (_lib ${BSON_LIBRARIES})
13+
if (_lib MATCHES ".*/.*" OR _lib MATCHES "^-")
14+
set (LIBBSON_LIBRARIES "${LIBBSON_LIBRARIES} ${_lib}")
15+
else ()

debian/patches/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0001_drop_implicit_link_libraries_from_pkg-config.patch

0 commit comments

Comments
 (0)