From da87047e643842ec53cf9a048cc57d03dc8b8e60 Mon Sep 17 00:00:00 2001 From: Aleric Inglewood Date: Thu, 24 Aug 2023 18:50:28 +0200 Subject: [PATCH] llrender must be compiled with -fPIC. None of the other code (except for the SHARED libraries, but they are already anyway) need to be compiled with -fPIC. That flags can therefore now be removed from fs-build-variables. --- indra/llrender/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/indra/llrender/CMakeLists.txt b/indra/llrender/CMakeLists.txt index c5cf1100d5..544804ad97 100644 --- a/indra/llrender/CMakeLists.txt +++ b/indra/llrender/CMakeLists.txt @@ -88,6 +88,8 @@ endif (BUILD_HEADLESS) add_library (llrender ${llrender_SOURCE_FILES}) target_include_directories( llrender INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}) +set_property(TARGET llrender PROPERTY POSITION_INDEPENDENT_CODE ON) + # Libraries on which this library depends, needed for Linux builds # Sort by high-level to low-level target_link_libraries(llrender