From fef18944950854808e0bac7d8da4479f2e7d6d2f Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 6 Feb 2012 10:21:49 +0000 Subject: [PATCH] re, rem, baresip, restund: use another approach to find the "sysroot", the current way still fails on Backfire - sigh --- libs/rem/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/rem/Makefile b/libs/rem/Makefile index fc2d9c0..c145912 100644 --- a/libs/rem/Makefile +++ b/libs/rem/Makefile @@ -37,7 +37,7 @@ define Build/Compile EXTRA_CFLAGS="$(TARGET_CFLAGS) -DOPENWRT" \ EXTRA_LFLAGS="-lm" \ DESTDIR="$(PKG_INSTALL_DIR)" \ - SYSROOT="$(TOOLCHAIN_DIR)" \ + SYSROOT="$$$$($(FIND) $(TOOLCHAIN_DIR) -path '*/include/pthread.h' | sed -ne '1s#/include/pthread.h##p')" \ SYSROOT_ALT="$(STAGING_DIR)/usr" \ RELEASE=1 \ CROSS_COMPILE="$(TARGET_CROSS)" \ -- 2.11.0