Package: qimageblitz / 1:0.0.6-5

r1203426.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Author: Pavel Heimlich <tropikhajma@gmail.com>
Description: use the autodetected CMAKE_C_COMPILER instead of hardwired gcc. fixes build with compilers other than gcc
Bug-Debian: https://bugs.debian.org/839283
Applied-Upstream: commit:1203426

diff --git a/blitz/CMakeLists.txt b/trunk/kdesupport/blitz/CMakeLists.txt
--- a/blitz/CMakeLists.txt	(revision 1203425)
+++ b/blitz/CMakeLists.txt	(revision 1203426)
@@ -33,7 +33,7 @@
     if(NOT APPLE AND NOT WIN32)
         set( blitz_LIB_SRCS ${blitz_LIB_SRCS} asm_scale.S )
         add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/asm_scale.o
-            COMMAND gcc -c ${CMAKE_CURRENT_SOURCE_DIR}/asm_scale.S
+            COMMAND ${CMAKE_C_COMPILER} -c ${CMAKE_CURRENT_SOURCE_DIR}/asm_scale.S
             DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/asm_scale.S )
         set( blitz_LIB_EXTRA_SRCS ${CMAKE_CURRENT_BINARY_DIR}/asm_scale.o )
         set(HAVE_EXTERNAL_ASM TRUE)