Ticket #9131: 0001-cmake-librpc-fix-for-using-external-toolchain.patch

File 0001-cmake-librpc-fix-for-using-external-toolchain.patch, 968 bytes (added by Sven Bachmann <dev@…>, 7 years ago)

patch for cmake to work with external toolchain

  • include/cmake.mk

    From c7534f98474ac941885e0b1d3e2a6fc55f76d425 Mon Sep 17 00:00:00 2001
    From: Sven <dev@mcbachmann.de>
    Date: Mon, 28 Mar 2011 16:40:28 +0200
    Subject: [PATCH] cmake/librpc: fix for using external toolchain
    
    Fixes compiler directory for cmake when using an external toolchain.
    
    Signed-off-by: Sven <dev@mcbachmann.de>
    ---
     include/cmake.mk |    4 ++--
     1 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/include/cmake.mk b/include/cmake.mk
    index c83be15..4a9085f 100644
    a b PKG_INSTALL:=1 
    33MAKE_FLAGS+=VERBOSE=1 
    44 
    55ifeq ($(CONFIG_CCACHE),) 
    6   CMAKE_C_COMPILER:=$(TOOLCHAIN_DIR)/bin/$(TARGET_CC) 
     6  CMAKE_C_COMPILER:=$(TOOLCHAIN_ROOT_DIR)/bin/$(TARGET_CC) 
    77  CMAKE_C_COMPILER_ARG1:= 
    8   CMAKE_CXX_COMPILER:=$(TOOLCHAIN_DIR)/bin/$(TARGET_CXX) 
     8  CMAKE_CXX_COMPILER:=$(TOOLCHAIN_ROOT_DIR)/bin/$(TARGET_CXX) 
    99  CMAKE_CXX_COMPILER_ARG1:= 
    1010else 
    1111  CMAKE_C_COMPILER:=$(STAGING_DIR_HOST)/bin/ccache