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: http://207.154.207.93/?a=commitdiff_plain;h=ef611c602e45ae6977340fa8df05bdb696a89484;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/re/Makefile b/libs/re/Makefile index e6f9ed4..86d3088 100644 --- a/libs/re/Makefile +++ b/libs/re/Makefile @@ -35,7 +35,7 @@ define Build/Compile EXTRA_CFLAGS="$(TARGET_CFLAGS) -DOPENWRT" \ EXTRA_LFLAGS="-lm" \ DESTDIR="$(PKG_INSTALL_DIR)" \ - SYSROOT="$$$$(echo '#include ' | $(TARGET_CROSS)cpp -x c | sed -ne 's,^# [0-9]* \"\(.*\)/include/pthread\.h\".*,\1,p' | head -n1)" \ + 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)" \