diff --git a/configure b/configure
index f6f82b2157ef6a451a47e4a26697901754b77824..3dd1b152c6cf50f66b9ee3235b9a44323d484ed9 100755
--- a/configure
+++ b/configure
@@ -13026,6 +13026,12 @@ esac
  ;;
 esac
 
+  case " $LIBOBJS " in
+  *" win32security.$ac_objext "* ) ;;
+  *) LIBOBJS="$LIBOBJS win32security.$ac_objext"
+ ;;
+esac
+
   case " $LIBOBJS " in
   *" win32setlocale.$ac_objext "* ) ;;
   *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
diff --git a/configure.in b/configure.in
index 678432f1289ed4d3113b33462a180203e82ce00b..93984822e47cd8948d4a40b0a9f01256111c01e6 100644
--- a/configure.in
+++ b/configure.in
@@ -1577,6 +1577,7 @@ if test "$PORTNAME" = "win32"; then
   AC_LIBOBJ(system)
   AC_LIBOBJ(win32env)
   AC_LIBOBJ(win32error)
+  AC_LIBOBJ(win32security)
   AC_LIBOBJ(win32setlocale)
   AC_DEFINE([HAVE_SYMLINK], 1,
             [Define to 1 if you have the `symlink' function.])