darktable/darktable-1.4.2-build-fixes-x86.patch

23 lines
1.2 KiB
Diff
Raw Permalink Normal View History

diff -Nru darktable-1.4.2/src.orig/dtview/CMakeLists.txt darktable-1.4.2/src/dtview/CMakeLists.txt
--- darktable-1.4.2/src.orig/dtview/CMakeLists.txt 2014-12-28 02:13:49.522000000 +0100
+++ darktable-1.4.2/src/dtview/CMakeLists.txt 2014-12-28 02:12:47.511000000 +0100
@@ -18,5 +18,5 @@
set_target_properties(darktable-viewer PROPERTIES CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE)
set_target_properties(darktable-viewer PROPERTIES INSTALL_RPATH $ORIGIN/../${LIB_INSTALL}/darktable)
set_target_properties(darktable-viewer PROPERTIES LINKER_LANGUAGE C)
-target_link_libraries(darktable-viewer lib_darktable ${SDL_LIBRARY} ${OPENGL_LIBRARIES})
+target_link_libraries(darktable-viewer lib_darktable -lgs ${SDL_LIBRARY} ${OPENGL_LIBRARIES})
install(TARGETS darktable-viewer DESTINATION bin)
diff -Nru darktable-1.4.2/src.orig/dtview/main.c darktable-1.4.2/src/dtview/main.c
--- darktable-1.4.2/src.orig/dtview/main.c 2014-12-28 02:14:05.301000000 +0100
+++ darktable-1.4.2/src/dtview/main.c 2014-12-28 02:14:18.030000000 +0100
@@ -37,7 +37,7 @@
#include <inttypes.h>
int running;
-int width, height;
+long long width, height;
uint32_t random_state;
int32_t repeat;
int use_random;