1
0
mirror of https://git.openwrt.org/feed/routing.git synced 2024-06-20 15:48:27 +02:00
openwrt-routing/ohybridproxy/patches/0001-find-libubox.patch
Florian Fainelli b09c768149 ohybridproxy: Properly search for libubox/utils.h
Fixes build error with external toolchains:

/local/users/fainelli/openwrt/trunk/build_dir/target-mipsel-linux-gnu_glibc/ohybridproxy-2016-06-28-8a28ae92c97099e771c9ede5641e3782ae809c27/src/util.h:32:27:
fatal error: libubox/utils.h: No such file or directory
 #include <libubox/utils.h>
                           ^
compilation terminated.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-05 17:57:40 -07:00

27 lines
693 B
Diff

From c015e7e62ed4c7645595f7f83cf156810433d0cd Mon Sep 17 00:00:00 2001
From: Florian Fainelli <f.fainelli@gmail.com>
Date: Mon, 5 Jun 2017 17:56:33 -0700
Subject: [PATCH] Cmake: Search and find libubox/utils.h
---
CMakeLists.txt | 3 +++
1 file changed, 3 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2556669d2a52..1c970d92ff56 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,6 +16,9 @@ else(${APPLE})
set(dns_sd "dns_sd")
endif(${APPLE})
+FIND_PATH(ubox_include_dir libubox/utils.h)
+INCLUDE_DIRECTORIES(${ubox_include_dir})
+
set(CORE src/cache.c src/io.c src/socket.c)
add_executable(ohybridproxy src/ohybridproxy.c src/dns2mdns.c ${CORE})
--
2.9.3