Skip to content

Commit 8955e9d

Browse files
committed
CDRIVER-4456 (Debian packaging) Explicitly link to libatomic on riscv64 (Closes: #1017345)
1 parent 01cfa84 commit 8955e9d

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
mongo-c-driver (1.22.1-2) UNRELEASED; urgency=medium
2+
3+
* Explicitly link to libatomic on riscv64 (Closes: #1017345)
4+
5+
-- Roberto C. Sanchez <[email protected]> Mon, 15 Aug 2022 17:06:22 -0400
6+
17
mongo-c-driver (1.22.1-1) unstable; urgency=medium
28

39
* New upstream release (Closes: #1013404)

debian/rules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
1616
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
1717
# package maintainers to append LDFLAGS
1818
export DEB_LDFLAGS_MAINT_APPEND := -lpthread
19+
# Link with libatomic on riscv64 to get access to the __atomic_*_1 functions
20+
ifeq ($(DEB_HOST_ARCH),riscv64)
21+
export DEB_LDFLAGS_MAINT_APPEND += -Wl,--no-as-needed -latomic -Wl,--as-needed
22+
endif
1923

2024
ifneq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS)))
2125
DOCS=OFF

0 commit comments

Comments
 (0)