package qdbm: workaround detection of cross-tools

This commit is contained in:
Tony Theodore 2013-06-27 23:32:33 +10:00
parent 59dfeb6d53
commit 48299bae31
1 changed files with 3 additions and 1 deletions

View File

@ -19,7 +19,9 @@ endef
define $(PKG)_BUILD
find '$(1)' -name 'Makefile.in' \
-exec $(SED) -i 's,make ,$(MAKE) ,g' {} \;
cd '$(1)' && ./configure \
$(SED) -i 's,LD=`which ld`,LD=$(TARGET)-ld,' '$(1)/configure'
$(SED) -i 's,AR=`which ar`,AR=$(TARGET)-ar,' '$(1)/configure'
cd '$(1)' && CC='$(PREFIX)/bin/$(TARGET)-gcc' ./configure \
--host='$(TARGET)' \
--prefix='$(PREFIX)/$(TARGET)' \
--enable-lzo \