libstdc++: Disabling AC_LIBTOOL_DLOPEN check if building with avr-libc
authorVladimir Vishnevsky <vv.os.swe@gmail.com>
Tue, 15 Dec 2020 11:40:07 +0000 (11:40 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 15 Dec 2020 11:45:26 +0000 (11:45 +0000)
The AC_LIBTOOL_DLOPEN checks were previously disabled for newlib targets.
The patch applies similar logic to avr-libc based builds.

libstdc++-v3/ChangeLog:

* configure.ac: Skip AC_LIBTOOL_DLOPEN check if avr-libc is used.
* configure: Regenerate.

libstdc++-v3/configure
libstdc++-v3/configure.ac

index d7a4826b8e209978b0a135fde6ea4bd96e2fd368..e6f30a1a706315946e60bf5974dfca5fd2ee119d 100755 (executable)
@@ -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
 
 
index cbfdf4c6bad12a4eaaebdf3a70e6e174cc71a9bf..771814110a130941ad4b532670706a3ebf1799e8 100644 (file)
@@ -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