From 49d39f32a50810468d79efbdf616ba9adbd1b877 Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 7 Dec 2017 19:00:34 +0000 Subject: [PATCH] Attempt to fix weird SWIG compile error with lacking relocatable flag * Although we're only making binaries so this doesn't seem like it should be necessary. --- qrenderdoc/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qrenderdoc/CMakeLists.txt b/qrenderdoc/CMakeLists.txt index 2df9ffa5a..abaeefbf0 100644 --- a/qrenderdoc/CMakeLists.txt +++ b/qrenderdoc/CMakeLists.txt @@ -71,7 +71,7 @@ ExternalProject_Add(custom_swig URL ${RENDERDOC_SWIG_PACKAGE} BUILD_IN_SOURCE 1 CONFIGURE_COMMAND ./autogen.sh > /dev/null 2>&1 - COMMAND CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER} ./configure --with-pcre=yes --prefix=${CMAKE_BINARY_DIR} > /dev/null + COMMAND CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER} CFLAGS=-fPIC CXXFLAGS=-fPIC ./configure --with-pcre=yes --prefix=${CMAKE_BINARY_DIR} > /dev/null BUILD_COMMAND $(MAKE) > /dev/null 2>&1 INSTALL_COMMAND $(MAKE) install > /dev/null 2>&1)