diff --git a/configure b/configure
index 03dbfeec88cdea41532552aeaf636c735830744d..b8504ec016de5c25c0416765a537fcf9c8b14523 100755
--- a/configure
+++ b/configure
@@ -8241,7 +8241,6 @@ fi
 
   linux-android*)
     DLLFLAGS="$DLLFLAGS -fPIC"
-    dlldir="\${libdir}"
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
diff --git a/configure.ac b/configure.ac
index 5d34272f00c221fb552fd1c19f833a26c190dc1d..e265fcd2973ab901f53ba2708627ed3e33a8e6bf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -848,7 +848,6 @@ case $host_os in
 
   linux-android*)
     DLLFLAGS="$DLLFLAGS -fPIC"
-    dlldir="\${libdir}"
     WINE_TRY_CFLAGS([-fPIC -Wl,--export-dynamic],
                     [LDEXECFLAGS="-Wl,--export-dynamic"])
     WINE_TRY_CFLAGS([-fPIC -Wl,--rpath,\$ORIGIN/../lib],