diff --git a/net/restund/Makefile b/net/restund/Makefile index 4c5d97271..551eac0ff 100644 --- a/net/restund/Makefile +++ b/net/restund/Makefile @@ -51,7 +51,7 @@ define Build/Compile CC="$(TARGET_CC)" \ EXTRA_CFLAGS="$(TARGET_CFLAGS)" \ DESTDIR="$(PKG_INSTALL_DIR)" \ - 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)" \