Skip to content

Commit 47e20e3

Browse files
authored
Clarify fPIC requirement for linking shared libraries
Updated comment for clarity on linking shared libraries.
1 parent 0638c56 commit 47e20e3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ set(CMAKE_C_STANDARD 99)
1313
set(CMAKE_C_STANDARD_REQUIRED ON)
1414

1515

16-
# In order to be able to link on Linux to other shared libraries,
17-
# while compiling e.g. a static webui library, the -fPIC
18-
# is necessary. This has been tested on Linux.
16+
# In order to be able to link with other shared libraries on Linux we may need `-fPIC`.
1917
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
2018
# using Clang
2119
add_compile_options(-fPIC)

0 commit comments

Comments
 (0)