Commit d2e8998f808b4ddab1decd2491a9f2e7692c6d53

orbea 2021-08-03T07:59:01

build: Fix the LINKER variable. The LINKER variable is set in configure.ac as either 'CC' or 'CXX' where it is then passed to the created Makefile. This fails with slibtool which can't find the 'CC' file and can be fixed by correctly setting the LINKER variable to an actual Makefile variable like '$(CC)' or '$(CXX)' instead. Presumably GNU libtool does some magic here to hide the issue.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/configure.ac b/configure.ac
index 82973c5..1e5d571 100644
--- a/configure.ac
+++ b/configure.ac
@@ -84,10 +84,10 @@ esac
 dnl use CXX for linker on Haiku
 case "$host" in
     *-*-haiku*)
-        LINKER=CXX
+        LINKER='$(CXX)'
         ;;
     *)
-        LINKER=CC
+        LINKER='$(CC)'
         ;;
 esac
 AC_SUBST(LINKER)