From 72397ede0897c9544c8ec97c6be4da9000e95a8d Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 26 Jun 2014 11:46:31 +1000 Subject: [PATCH] 3889. [port] hurd: configure fixes as per: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=746540 (cherry picked from commit 89119e3cafff373426858f6cec7c09539f53e209) --- CHANGES | 3 +++ configure | 6 +++--- configure.in | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGES b/CHANGES index 6295eb6623..7c015168f4 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +3889. [port] hurd: configure fixes as per: + https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=746540 + 3887. [cleanup] Make all static symbols in rbtdb64 end in "64" so they are easier to use in a debugger. [RT #36373] diff --git a/configure b/configure index 669c730887..624bb37596 100755 --- a/configure +++ b/configure @@ -12441,7 +12441,7 @@ case "$host" in # as it breaks how the two halves (Basic and Advanced) of the IPv6 # Socket API were designed to be used but we have to live with it. # Define _GNU_SOURCE to pull in the IPv6 Advanced Socket API. - *-linux* | *-kfreebsd*-gnu) + *-linux* | *-kfreebsd*-gnu*) STD_CDEFINES="$STD_CDEFINES -D_GNU_SOURCE" CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" ;; @@ -19276,7 +19276,7 @@ if test -f "${srcdir}/srcid"; then . "${srcdir}/srcid" BIND9_SRCID="SRCID=$SRCID" elif test -d "${srcdir}/.git"; then - BIND9_SRCID="SRCID="`(cd "${srcdir}";git log -n 1 --format=%h)` + BIND9_SRCID="SRCID="`(cd "${srcdir}";git rev-parse --short HEAD)` fi @@ -19424,7 +19424,7 @@ fi if test "$dlopen" = "yes"; then case $host in - *-linux*) + *-linux*|*-gnu*) SO_CFLAGS="-fPIC" SO_LDFLAGS="" if test "$have_dl" = "yes" diff --git a/configure.in b/configure.in index 3bf5f54284..1eb63649b5 100644 --- a/configure.in +++ b/configure.in @@ -351,7 +351,7 @@ case "$host" in # as it breaks how the two halves (Basic and Advanced) of the IPv6 # Socket API were designed to be used but we have to live with it. # Define _GNU_SOURCE to pull in the IPv6 Advanced Socket API. - *-linux* | *-kfreebsd*-gnu) + *-linux* | *-kfreebsd*-gnu*) STD_CDEFINES="$STD_CDEFINES -D_GNU_SOURCE" CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" ;; @@ -3545,7 +3545,7 @@ fi if test "$dlopen" = "yes"; then case $host in - *-linux*) + *-linux*|*-gnu*) SO_CFLAGS="-fPIC" SO_LDFLAGS="" if test "$have_dl" = "yes"