#19074: rpcd compilation error
--------------------------------+----------------------------------
  Reporter:  Damian Kaczkowski  |      Owner:  developers
      Type:  defect             |     Status:  new
  Priority:  normal             |  Milestone:  Chaos Calmer (trunk)
 Component:  packages           |    Version:  Trunk
Resolution:                     |   Keywords:
--------------------------------+----------------------------------

Comment (by Damian Kaczkowski):

 This patch fixes the problem:

 {{{
 --- ./include/cmake.mk
 +++ ./include/cmake.mk
 @@ -31,6 +31,12 @@ CMAKE_AR:=$(call cmake_tool,$(TARGET_AR)
  CMAKE_NM:=$(call cmake_tool,$(TARGET_NM))
  CMAKE_RANLIB:=$(call cmake_tool,$(TARGET_RANLIB))

 +ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),)
 +  ___CMAKE_FIND_ROOT_PATH=$(STAGING_DIR);$(TOOLCHAIN_DIR)
 +else
 +
 
___CMAKE_FIND_ROOT_PATH=$(STAGING_DIR);$(TOOLCHAIN_DIR);$(CONFIG_TOOLCHAIN_ROOT)
 +endif
 +
  define Build/Configure/Default
         (cd $(PKG_BUILD_DIR); \
                 CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
 @@ -53,7 +59,7 @@ define Build/Configure/Default
                         -DCMAKE_AR="$(CMAKE_AR)" \
                         -DCMAKE_NM="$(CMAKE_NM)" \
                         -DCMAKE_RANLIB="$(CMAKE_RANLIB)" \
 -
 -DCMAKE_FIND_ROOT_PATH="$(STAGING_DIR);$(TOOLCHAIN_DIR)" \
 +
 -DCMAKE_FIND_ROOT_PATH="$(___CMAKE_FIND_ROOT_PATH)" \
                         -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=BOTH \
                         -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
                         -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
 }}}

 I am not sure what should be the proper fix for buildroot so I leave that
 to you jow. Thanks for your hints and rpcd fix.

--
Ticket URL: <https://dev.openwrt.org/ticket/19074#comment:12>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to