]> granicus.if.org Git - postgresql/commitdiff
Blind attempt at a Cygwin fix
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 8 Jan 2016 14:48:39 +0000 (11:48 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 8 Jan 2016 14:48:39 +0000 (11:48 -0300)
Further portability fix for a967613911f7.  Mingw- and MSVC-based builds
appear to be working fine, but Cygwin needs an extra tweak whereby the
new win32security.c file is explicitely added to the list of files to
build in pgport, per Cygwin members brolga and lorikeet.

Author: Michael Paquier

configure
configure.in

index 3dd1b152c6cf50f66b9ee3235b9a44323d484ed9..ab213a12c1a895d0a9e1074c08e84a79e4267b43 100755 (executable)
--- a/configure
+++ b/configure
@@ -13075,6 +13075,12 @@ if test "$PORTNAME" = "cygwin"; then
  ;;
 esac
 
+  case " $LIBOBJS " in
+  *" win32security.$ac_objext "* ) ;;
+  *) LIBOBJS="$LIBOBJS win32security.$ac_objext"
+ ;;
+esac
+
 fi
 
 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
index 93984822e47cd8948d4a40b0a9f01256111c01e6..41402dfaa49317e66268984608148cbf8bd93708 100644 (file)
@@ -1596,6 +1596,7 @@ fi
 # Cygwin needs only a bit of that
 if test "$PORTNAME" = "cygwin"; then
   AC_LIBOBJ(dirmod)
+  AC_LIBOBJ(win32security)
 fi
 
 AC_CHECK_DECLS([sys_siglist], [], [],