[packages] tesseract: add workaround for byte-order mark in source file, backfire gcc chokes on it

git-svn-id: svn://svn.openwrt.org/openwrt/packages@28791 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2011-11-06 23:35:14 +00:00
parent f02ac86a70
commit 7a555274cc

View File

@ -33,6 +33,11 @@ CONFIGURE_ARGS += \
TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
define Build/Prepare
$(call Build/Prepare/Default)
$(SED) '1s/^\xEF\xBB\xBF//' $(PKG_BUILD_DIR)/ccutil/strngs.h
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/tesseract $(1)/usr/include/