[Pkg-mongodb-maintainers] [mongo-cxx-driver-legacy] 01/04: Build using -D_DEFAULT_SOURCE

Apollon Oikonomopoulos apoikos at moszumanska.debian.org
Fri Sep 1 13:28:27 UTC 2017


This is an automated email from the git hooks/post-receive script.

apoikos pushed a commit to branch debian
in repository mongo-cxx-driver-legacy.

commit 1cdd25a4b938b7972146af0887154f5cca2cc93c
Author: Apollon Oikonomopoulos <apoikos at debian.org>
Date:   Fri Sep 1 16:07:54 2017 +0300

    Build using -D_DEFAULT_SOURCE
    
    Expose glibc's timegm(3) to the build. The vendored timegm(3)
    implementation produces errors when built with gcc-7.
    
    Closes: #853554
---
 debian/rules | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/rules b/debian/rules
index d8553cd..e4dca89 100755
--- a/debian/rules
+++ b/debian/rules
@@ -18,6 +18,10 @@ SCONS_COMPILE_FLAGS=             \
     CFLAGS="$(CFLAGS) $(CPPFLAGS)"           \
     LINKFLAGS="$(LDFLAGS)"
 
+# Set _DEFAULT_SOURCE to use the system's timegm(3). The vendored timegm()
+# implementation is buggy under gcc-7.
+SCONS_COMPILE_FLAGS += CPPDEFINES="_DEFAULT_SOURCE"
+
 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
         NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
         SCONS_COMPILE_FLAGS += -j $(NUMJOBS)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mongodb/mongo-cxx-driver-legacy.git



More information about the Pkg-mongodb-maintainers mailing list