While the fallout(*) from the libsanitizer commit is handled,
it's obvious it should have a noconfigdirs= section in
toplevel/configure.ac like the other target libs. Here's what I
committed after observing that a cris-elf build passed, where it
previously failed building libsanitizer which wrongly tries to
compile using -fPIC despite checking in its configure.ac IIUC.
But, I'd like to update the target contents there to something a
bit more generic.
Maybe disable libsanitizer everywhere except for (referring to
the three common target-related file-name parts in libsanitizer)
"mac", "win" and "linux"? Or disable everywhere except x86_64 /
i386? That's the only port that defines the required
TARGET_ASAN_SHADOW_OFFSET. Maybe the library configure.ac
should check whether using -fsanitizer is error-free and disable
the libsanitizer build automatically?
toplevel:
* configure.ac: Add section for noconfigdirs for libsanitizer.
Disable for cris-*-* and mmix-*-*.
* configure: Regenerate.
Index: configure.ac
===================================================================
--- configure.ac (revision 193455)
+++ configure.ac (working copy)
@@ -547,6 +547,13 @@ case "${target}" in
;;
esac
+# Disable libsanitizer for some systems.
+case "${target}" in
+ cris-*-* | crisv32-*-* | mmix-*-*)
+ noconfigdirs="$noconfigdirs target-libsanitizer"
+ ;;
+esac
+
# Disable libssp for some systems.
case "${target}" in
avr-*-*)
Index: configure
===================================================================
--- configure (revision 193455)
+++ configure (working copy)
@@ -3205,6 +3205,13 @@ case "${target}" in
;;
esac
+# Disable libsanitizer for some systems.
+case "${target}" in
+ cris-*-* | crisv32-*-* | mmix-*-*)
+ noconfigdirs="$noconfigdirs target-libsanitizer"
+ ;;
+esac
+
# Disable libssp for some systems.
case "${target}" in
avr-*-*)
*) -fPIC passed when building libsanitizer for targets that
don't support it, lack of multilib setup for libsanitizer,
libsanitizer not installed in version-specific subdir...
Basically, IMHO it should just copy the generic
libgfortran/configure.ac and be done with it. Right now it has
the smallest configure.ac of the target-libraries.
brgds, H-P