From: Jo-Philipp Wich Date: Mon, 6 Feb 2012 10:21:49 +0000 (+0000) Subject: re, rem, baresip, restund: use another approach to find the "sysroot", the current... X-Git-Url: https://git.archive.openwrt.org/?a=commitdiff_plain;h=fef18944950854808e0bac7d8da4479f2e7d6d2f;p=feed%2Ftelephony.git re, rem, baresip, restund: use another approach to find the "sysroot", the current way still fails on Backfire - sigh --- 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)" \