Commit c0601d0123808fce91519b34b12f5c06769cf3ff

kenmays 2021-07-25T10:15:03

SDL: Updated patches for HAIKU

diff --git a/configure.ac b/configure.ac
index 1dcb00f..10879ee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -81,6 +81,17 @@ case "$host" in
         ;;
 esac
 
+dnl use CXX for linker on Haiku
+case "$host" in
+    *-*-haiku*)
+        LINKER=CXX
+        ;;
+    *)
+        LINKER=CC
+        ;;
+esac
+AC_SUBST(LINKER)
+
 if test x$srcdir != x.; then
     INCLUDE="-Iinclude $INCLUDE"
 elif test -d .git; then