Bladeren bron

Remove -fPIC from extra CMake CFLAGS

Building position independant code is the default behavior for CMake
when compiling shared library targets.
pull/269/head
Jonathan GUILLOT 2 maanden geleden
bovenliggende
commit
82ea43eb52
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. +1
    -1
      devLib/CMakeLists.txt
  2. +1
    -1
      wiringPi/CMakeLists.txt

+ 1
- 1
devLib/CMakeLists.txt Bestand weergeven

@@ -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})


+ 1
- 1
wiringPi/CMakeLists.txt Bestand weergeven

@@ -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


Laden…
Annuleren
Opslaan