I'm using the backfire 10.03.01 SDK, for x86, from here:
http://downloads.openwrt.org/backfire/1 … 86_generic
Here is the Makefile I'm using:
include $(TOPDIR)/rules.mk
PKG_NAME:=pthsem
PKG_VERSION:=2.0.7
PKG_RELEASE:=2
PKG_MD5SUM:=b277716ee1224ca9925176fa29e1f0c5
PKG_SOURCE_URL:=@SF/bcusdk
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
define Package/pthsem
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Pth threads with semaphore support
URL:=http://sourceforge.net/projects/bcusdk/
TARGET_LDFLAGS += -rpath-link /data/tmp/OpenWrt-SDK-x86-for-Linux-i686-gcc-4.1.2_uClibc-0.9.30.1/staging_dir/toolchain-i386_gcc-4.1.2_uClibc-0.9.30.1/lib/ld-uClibc.so.0
endef
define Build/Compile
LDFLAGS="$(LIBGCC_S)" $(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/pthsem.h $(STAGING_DIR)/usr/include/
mkdir -p $(STAGING_DIR)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpthsem.a $(STAGING_DIR)/usr/lib/
endef
define Build/UninstallDev
rm -rf \
$(STAGING_DIR)/usr/include/pthsem.h \
$(STAGING_DIR)/usr/lib/libpthsem.a
endef
$(eval $(call BuildPackage,pthsem))
I also tried to recompile the complete toolchain of this backfire version, but I also encountered compilation errors 
Why is it not possible to use the SDK? Is it supposed to work, or not? Do the mentionned scripts exist?