[Bug 234217] Change compilation option for libarchive
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Dec 20 15:13:09 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234217
Bug ID: 234217
Summary: Change compilation option for libarchive
Product: Base System
Version: 11.2-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs at FreeBSD.org
Reporter: alexandre.martins at stormshield.eu
Greetings,
Currently, the libarchive is compiled without the flag
HAVE_LZMA_STREAM_ENCODER_MT. It may be nice to add this flag to allow
compression on multiple CPU.
On my machine (4 CPU), if I compress 4GB of 0 in the standard way:
$ time tar --options threads=0 -cJf test.txz zero
real 1m18,200s
user 1m16,910s
sys 0m0,941s
When libarchive is compiled with the flag:
$ time tar --options threads=0 -cJf test.txz zero
real 0m21,810s
user 1m17,612s
sys 0m1,478s
The patch:
-+-+-+-+-+-+-
--- Makefile.orig 2018-12-20 16:09:26.863988000 +0100
+++ Makefile 2018-12-20 16:09:47.393163000 +0100
@@ -7,7 +7,7 @@ _LIBARCHIVEDIR= ${SRCTOP}/contrib/libarc
LIB= archive
LIBADD= z bz2 lzma bsdxml
-CFLAGS+= -DHAVE_BZLIB_H=1 -DHAVE_LIBLZMA=1 -DHAVE_LZMA_H=1
+CFLAGS+= -DHAVE_BZLIB_H=1 -DHAVE_LIBLZMA=1 -DHAVE_LZMA_H=1
-DHAVE_LZMA_STREAM_ENCODER_MT=1
# FreeBSD SHLIB_MAJOR value is managed as part of the FreeBSD system.
# It has no real relation to the libarchive version number.
-+-+-+-+-+-+-
Best regards,
Alexandre
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list