mirror of https://git.wownero.com/dsc/mxe.git
test program for package libarchive (by Natalie Tasman)
This commit is contained in:
parent
8cf74a51a4
commit
e525a1ad9c
|
@ -0,0 +1,19 @@
|
|||
/* This file is part of mingw-cross-env. */
|
||||
/* See doc/index.html for further information. */
|
||||
|
||||
#include <archive.h>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
struct archive *tgz;
|
||||
|
||||
(void)argc;
|
||||
(void)argv;
|
||||
|
||||
tgz = archive_write_new();
|
||||
archive_write_set_compression_gzip(tgz);
|
||||
archive_write_set_format_ustar(tgz);
|
||||
archive_write_finish(tgz);
|
||||
|
||||
return 0;
|
||||
}
|
|
@ -30,4 +30,9 @@ define $(PKG)_BUILD
|
|||
XML2_CONFIG='$(PREFIX)/$(TARGET)'/bin/xml2-config
|
||||
$(MAKE) -C '$(1)' -j '$(JOBS)' man_MANS=
|
||||
$(MAKE) -C '$(1)' -j 1 install man_MANS=
|
||||
|
||||
'$(TARGET)-gcc' \
|
||||
-W -Wall -Werror -ansi -pedantic \
|
||||
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-libarchive.exe' \
|
||||
-larchive -lz
|
||||
endef
|
||||
|
|
Loading…
Reference in New Issue