Fix cross-compile
[lttng-tools.git] / configure.ac
index 72daf7e0f32c42770bfa2a60fb04c13bd66b527c..49d324ecdf66af5f6c26d512e0daf1876474ee4b 100644 (file)
@@ -39,6 +39,8 @@ AS_IF([test "x$libtool_fixup" = "xyes"],
                  ])
            ])
 
+AM_CONDITIONAL([NO_SHARED], [test x$enable_shared = xno])
+
 AC_CHECK_HEADERS([ \
        sys/types.h unistd.h fcntl.h string.h pthread.h limits.h \
        signal.h stdlib.h sys/un.h sys/socket.h stdlib.h stdio.h \
@@ -311,7 +313,7 @@ AS_ECHO("$version_description")
 AS_ECHO()
 
 # Target architecture we're building for
-target_arch=$host_cpu
+target_arch=$target_cpu
 [
 for f in $CFLAGS; do
         if test $f = "-m32"; then
This page took 0.026101 seconds and 5 git commands to generate.