diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index d7a4826b8e2..e6f30a1a706 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -5899,7 +5899,7 @@ $as_echo "$as_me: OS config directory is $os_include_dir" >&6;} # Libtool setup. -if test "x${with_newlib}" != "xyes"; then +if test "x${with_newlib}" != "xyes" && test "x${with_avrlibc}" != "xyes"; then enable_dlopen=yes diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac index cbfdf4c6bad..771814110a1 100644 --- a/libstdc++-v3/configure.ac +++ b/libstdc++-v3/configure.ac @@ -90,7 +90,7 @@ AC_SYS_LARGEFILE GLIBCXX_CONFIGURE # Libtool setup. -if test "x${with_newlib}" != "xyes"; then +if test "x${with_newlib}" != "xyes" && test "x${with_avrlibc}" != "xyes"; then AC_LIBTOOL_DLOPEN fi AM_PROG_LIBTOOL