]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
add fpic flag for compile
authorBastian Dehn <hhaalo@arcor.de>
Mon, 20 Jan 2025 20:41:37 +0000 (21:41 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Mon, 20 Jan 2025 20:41:37 +0000 (21:41 +0100)
CMakeLists.txt

index fe8dce116850824d60fd399b0f230a9b1f4d28d5..7c00b05fc58136d41c0cc4e041fe5c78e4d1d079 100644 (file)
@@ -7,11 +7,11 @@ PROJECT("kds-s2000w-net")
 SET(CMAKE_BUILD_TYPE "Release" CACHE STRING "release")
 
 IF(CMAKE_BUILD_TYPE STREQUAL "Release")
-       SET(CMAKE_C_FLAGS "-Wall -Werror" CACHE STRING "compiler flags" FORCE)
+       SET(CMAKE_C_FLAGS "-fPIC -Wall -Werror" CACHE STRING "compiler flags" FORCE)
 ENDIF()
 
 IF(CMAKE_BUILD_TYPE STREQUAL "Debug")
-       SET(CMAKE_C_FLAGS "-Wall -g" CACHE STRING "debug compiler flags" FORCE)
+       SET(CMAKE_C_FLAGS "-fPIC -Wall -g" CACHE STRING "debug compiler flags" FORCE)
 ENDIF()
 
 IF (RUN_TESTS)