about summary refs log tree commit diff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure b/configure
index 9465b77..f569f80 100755
--- a/configure
+++ b/configure
@@ -44,13 +44,15 @@ case "$(uname)" in
 	(Linux)
 		cflags -Wno-pedantic -D_GNU_SOURCE
 		config libtls ncursesw
+		ldadd resolv -lresolv
 		defvar OPENSSL_BIN openssl exec_prefix /bin/openssl
-		echo 'OBJS += compat_readpassphrase.o'
+		echo 'OBJS.compat += compat_readpassphrase.o'
 		;;
 	(Darwin)
 		cflags -D__STDC_WANT_LIB_EXT1__=1
 		cflags "-D'explicit_bzero(b,l)=memset_s((b),(l),0,(l))'"
 		config libtls ncursesw
+		ldadd resolv -lresolv
 		defvar OPENSSL_BIN openssl exec_prefix /bin/openssl
 		;;
 	(*)