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.
This commit is contained in:
baldurk
2017-12-07 19:00:34 +00:00
parent b471f95c6a
commit 49d39f32a5
+1 -1
View File
@@ -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)