mirror of https://git.wownero.com/dsc/mxe.git
test program for package curl
This commit is contained in:
parent
6414eebdaa
commit
25b068145e
|
@ -0,0 +1,23 @@
|
|||
/* This file is part of mingw-cross-env. */
|
||||
/* See doc/index.html for further information. */
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
CURL *curl;
|
||||
|
||||
(void)argc;
|
||||
(void)argv;
|
||||
|
||||
curl = curl_easy_init();
|
||||
if (!curl) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/");
|
||||
curl_easy_perform(curl);
|
||||
|
||||
curl_easy_cleanup(curl);
|
||||
return 0;
|
||||
}
|
|
@ -29,4 +29,9 @@ define $(PKG)_BUILD
|
|||
--with-libidn \
|
||||
LIBS="-lgcrypt -liconv `$(PREFIX)/$(TARGET)/bin/gpg-error-config --libs`"
|
||||
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
|
||||
|
||||
'$(TARGET)-gcc' \
|
||||
-W -Wall -Werror -ansi -pedantic \
|
||||
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-curl.exe' \
|
||||
`'$(TARGET)-pkg-config' libcurl --cflags --libs`
|
||||
endef
|
||||
|
|
Loading…
Reference in New Issue