mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-09 07:51:59 -09:00
package/git: Used curl-config program for target
Fix cross compilation by using curl-config script for target instead of the one from host. Signed-off-by: Remi Pommarel <repk@triplefau.lt> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
986bbee1ff
commit
a8f35c71bb
@@ -29,6 +29,8 @@ endif
|
||||
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
||||
GIT_DEPENDENCIES += libcurl
|
||||
GIT_CONF_OPTS += --with-curl
|
||||
GIT_CONF_ENV += \
|
||||
ac_cv_prog_curl_config=$(STAGING_DIR)/usr/bin/$(LIBCURL_CONFIG_SCRIPTS)
|
||||
else
|
||||
GIT_CONF_OPTS += --without-curl
|
||||
endif
|
||||
@@ -57,7 +59,7 @@ endif
|
||||
|
||||
# assume yes for these tests, configure will bail out otherwise
|
||||
# saying error: cannot run test program while cross compiling
|
||||
GIT_CONF_ENV = \
|
||||
GIT_CONF_ENV += \
|
||||
ac_cv_fread_reads_directories=yes \
|
||||
ac_cv_snprintf_returns_bogus=yes LIBS='$(GIT_CONF_ENV_LIBS)'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user