Переглянути джерело

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.
orbea 4 роки тому
батько
коміт
d2e8998f80
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      configure.ac

+ 2 - 2
configure.ac

@@ -84,10 +84,10 @@ esac
 dnl use CXX for linker on Haiku
 dnl use CXX for linker on Haiku
 case "$host" in
 case "$host" in
     *-*-haiku*)
     *-*-haiku*)
-        LINKER=CXX
+        LINKER='$(CXX)'
         ;;
         ;;
     *)
     *)
-        LINKER=CC
+        LINKER='$(CC)'
         ;;
         ;;
 esac
 esac
 AC_SUBST(LINKER)
 AC_SUBST(LINKER)