From 5b0d8d2a3ef7e6e5d58dc2111e1798f6fae115d6 Mon Sep 17 00:00:00 2001 From: jow Date: Thu, 19 Jan 2012 13:20:05 +0000 Subject: [PATCH] [packages] baresip: infer SYSROOT from cross cpp, same fix as for "re" git-svn-id: svn://svn.openwrt.org/openwrt/packages@29801 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/baresip/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/baresip/Makefile b/net/baresip/Makefile index 3ec702bb1..02f6885ee 100644 --- a/net/baresip/Makefile +++ b/net/baresip/Makefile @@ -79,7 +79,7 @@ define Build/Compile CC="$(TARGET_CC)" \ DESTDIR="$(PKG_INSTALL_DIR)" \ EXTRA_CFLAGS="$(TARGET_CFLAGS) -DOPENWRT" \ - SYSROOT="$(TOOLCHAIN_DIR)" \ + SYSROOT="$$$$(echo '#include ' | $(TARGET_CROSS)cpp -x c | sed -ne 's,^# [0-9]* \"\(.*\)/include/pthread\.h\".*,\1,p' | head -n1)" \ SYSROOT_ALT="$(STAGING_DIR)/usr" \ RELEASE=1 \ CROSS_COMPILE="$(TARGET_CROSS)" \