should be it
This commit is contained in:
17
external/duckdb/scripts/raspberry-pi-cmake-toolchain.cmake
vendored
Normal file
17
external/duckdb/scripts/raspberry-pi-cmake-toolchain.cmake
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
SET(CMAKE_SYSTEM_NAME Linux)
|
||||
|
||||
# Define our host system
|
||||
SET(CMAKE_SYSTEM_NAME Linux)
|
||||
SET(CMAKE_SYSTEM_VERSION 1)
|
||||
# Define the cross compiler locations
|
||||
SET(CMAKE_C_COMPILER ${DUCKDB_RPI_TOOLCHAIN_PREFIX}/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc)
|
||||
SET(CMAKE_CXX_COMPILER ${DUCKDB_RPI_TOOLCHAIN_PREFIX}/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc)
|
||||
# Define the sysroot path for the RaspberryPi distribution in our tools folder
|
||||
SET(CMAKE_FIND_ROOT_PATH ${DUCKDB_RPI_TOOLCHAIN_PREFIX}/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/arm-linux-gnueabihf/sysroot/)
|
||||
# Use our definitions for compiler tools
|
||||
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||
# Search for libraries and headers in the target directories only
|
||||
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||
|
||||
SET(DUCKDB_EXTRA_LINK_FLAGS -lstdc++ -lgcc -lm)
|
||||
Reference in New Issue
Block a user