diff --git a/devLib/CMakeLists.txt b/devLib/CMakeLists.txt index 21b8c29..beec8cb 100644 --- a/devLib/CMakeLists.txt +++ b/devLib/CMakeLists.txt @@ -22,7 +22,7 @@ set(HEADERS ) # Compiler flags -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wformat=2 -Winline -pipe -fPIC") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wformat=2 -Winline -pipe") # Add the library target add_library(wiringPiDev SHARED ${SRC}) diff --git a/wiringPi/CMakeLists.txt b/wiringPi/CMakeLists.txt index 3326ada..1663374 100644 --- a/wiringPi/CMakeLists.txt +++ b/wiringPi/CMakeLists.txt @@ -43,7 +43,7 @@ set(HEADERS wpiExtensions.h ) # Compiler flags -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wformat=2 -Winline -pipe -fPIC -Wformat-security") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wformat=2 -Winline -pipe -Wformat-security") set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-soname,libwiringPi.so${WIRINGPI_SONAME_SUFFIX}") # Read version from version.h