Skip to content

Commit 49d39f3

Browse files
committed
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.
1 parent b471f95 commit 49d39f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qrenderdoc/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ ExternalProject_Add(custom_swig
7171
URL ${RENDERDOC_SWIG_PACKAGE}
7272
BUILD_IN_SOURCE 1
7373
CONFIGURE_COMMAND ./autogen.sh > /dev/null 2>&1
74-
COMMAND CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER} ./configure --with-pcre=yes --prefix=${CMAKE_BINARY_DIR} > /dev/null
74+
COMMAND CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER} CFLAGS=-fPIC CXXFLAGS=-fPIC ./configure --with-pcre=yes --prefix=${CMAKE_BINARY_DIR} > /dev/null
7575
BUILD_COMMAND $(MAKE) > /dev/null 2>&1
7676
INSTALL_COMMAND $(MAKE) install > /dev/null 2>&1)
7777

0 commit comments

Comments
 (0)