Explorar el Código

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 hace 2 meses
padre
commit
82ea43eb52
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. +1
    -1
      devLib/CMakeLists.txt
  2. +1
    -1
      wiringPi/CMakeLists.txt

+ 1
- 1
devLib/CMakeLists.txt Ver fichero

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

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


Cargando…
Cancelar
Guardar