diff --git a/src/qdbm.mk b/src/qdbm.mk index 162f9464..6c36defa 100644 --- a/src/qdbm.mk +++ b/src/qdbm.mk @@ -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 \