]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Add a configure warning about OpenBSDs broken compilers/linkers.
authorPeter Powell <petpow@saberuk.com>
Thu, 6 Jun 2019 21:28:25 +0000 (22:28 +0100)
committerPeter Powell <petpow@saberuk.com>
Thu, 6 Jun 2019 21:28:25 +0000 (22:28 +0100)
configure

index 328fefe1728bd6d8ef69add4d66e8835bcbb9437..5ab87f528090d685931f1351d262b3186987970b 100755 (executable)
--- a/configure
+++ b/configure
@@ -263,6 +263,15 @@ configured on the Hardware Node. Failure to do so may result in clock drifting!
 EOW
 }
 
+# Warn the user about OpenBSD shipping incredibly broken compilers/linkers.
+if ($^O eq 'openbsd') {
+       print_warning <<'EOW';
+You are building InspIRCd on OpenBSD. The C++ compilers and linkers
+that OpenBSD ship are incredibly broken. You may have strange linker errors
+and crashes. Please consider using a different OS like FreeBSD/NetBSD instead.
+EOW
+}
+
 # Check that the user actually wants this version.
 if (defined $version{REAL_LABEL}) {
        print_warning <<'EOW';