3 Use the cross-compiler and not the host version.
6 https://github.com/notspiff/screensavers.rsxs/pull/5
8 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
10 diff -uNr screensavers.rsxs-195e0ec3fbbcb2ee2012cd560e42d05167f0f259.org/CMakeLists.txt screensavers.rsxs-195e0ec3fbbcb2ee2012cd560e42d05167f0f259/CMakeLists.txt
11 --- screensavers.rsxs-195e0ec3fbbcb2ee2012cd560e42d05167f0f259.org/CMakeLists.txt 2015-03-19 12:20:23.000000000 +0100
12 +++ screensavers.rsxs-195e0ec3fbbcb2ee2012cd560e42d05167f0f259/CMakeLists.txt 2015-07-19 20:26:16.660481032 +0200
14 ${PROJECT_SOURCE_DIR}/${rsxs_dir}/src/skyrocket
15 ${PROJECT_SOURCE_DIR}/${rsxs_dir}/src/solarwinds)
18 +get_filename_component( COMPILER_FILENAME "${CMAKE_C_COMPILER}" NAME )
19 +string( REGEX REPLACE "-[^-]+$" ""
20 + TOOLCHAIN_NAME "${COMPILER_FILENAME}" )
22 include(ExternalProject)
23 set(update_command "")
24 if(BOOTSTRAP_IN_TREE OR NOT DEFINED BOOTSTRAP_IN_TREE)
28 externalproject_add(rsxs SOURCE_DIR ${PROJECT_SOURCE_DIR}/${rsxs_dir}
29 - CONFIGURE_COMMAND ${configure_start}
30 + CONFIGURE_COMMAND gl_cv_func_gettimeofday_clobber=no
31 + ac_cv_func_malloc_0_nonnull=yes
33 --prefix=<INSTALL_DIR>
34 + --host=${TOOLCHAIN_NAME}
35 --without-xscreensaver