summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* Update autotools and fix warnings (#1815)Rose2023-01-091-1/+1
| | | | We do not need to check TIME_WITH_SYS_TIME anymore. We can check HAVE_SYS_TIME_H and not bother checking for C99.
* replace time64 functions with normal ones (#1830)Rosen Penev2023-01-091-4/+5
| | | | | | | | | Otherwise there are 32/64-bit pointer conversions going on. In Windows since MSVC2005, time_t has been 64-bit. MinGW needs a hack to get 64-bit time_t. Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Rosen Penev <rosenp@gmail.com>
* Libarchive 3.6.3devMartin Matuska2022-12-091-1/+1
|
* Release 3.6.2v3.6.2Martin Matuska2022-12-091-1/+1
|
* Fix CMake warningJoris Clement2022-10-281-3/+4
| | | | | | | | | | | | | | | | | | The warnings occurs at least with CMake version 3.24. It is caused by CMake trying to find the gcc library due to case sensitivity. The warning message was: ``` CMake Warning (dev) at /usr/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:438 (message): The package name passed to `find_package_handle_standard_args` (LIBGCC) does not match the name of the calling package (LibGCC). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Call Stack (most recent call first): build/cmake/FindLibGCC.cmake:17 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:1269 (FIND_PACKAGE) This warning is for project developers. Use -Wno-dev to suppress it. ```
* cmake: set WINDOWS_VERSION to WIN10 by defaultVincent Torri2022-10-011-1/+1
|
* Merge pull request #1777 from vtorri/vtorri_win10_1Tim Kientzle2022-10-011-3/+7
|\ | | | | cmake: update possible values of WINDOWS_VERSION to also support Windows 10
| * cmake: update possible values of WINDOWS_VERSION to also support Windows 10Vincent Torri2022-09-201-3/+7
| |
* | cmake: use pkgconfig for zstd lookupRosen Penev2022-09-301-2/+7
|/ | | | | | | | | As libzstd typically comes with a pkgconfig file, use it. Fixes compilation at least on OpenWrt where host paths were leaking into the build. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* Hide internal symbols on platforms that support visibility annotations (see ↵Yuri Gribov2022-07-271-0/+11
| | | | discussion in gh-1017).
* Libarchive 3.6.2devMartin Matuska2022-04-081-1/+1
|
* Release 3.6.1Martin Matuska2022-04-081-1/+1
|
* Libarchive 3.6.1devMartin Matuska2022-02-141-1/+1
|
* Release 3.6.0v3.6.0Martin Matuska2022-02-091-1/+1
|
* Merge pull request #1625 from evelikov/gc-sectionsMartin Matuška2022-01-031-19/+25
|\ | | | | Instrument gcc/clang to discard unused code during link
| * cmake: enable -fdata/function-sections and --gc-sectionsEmil Velikov2021-11-211-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The former two split the functions and data into separate sections within the object file. Which makes it easier for the latter to properly garbage collect and discard unused sections. For example text data bss dec hex filename 208268 2056 4424 214748 346dc bsdcat -- before 93396 1304 4360 99060 182f4 bsdcat -- after 1059167 12112 24176 1095455 10b71f bsdcpio -- before 1002538 7320 23984 1033842 fc672 bsdcpio -- after 1093676 14248 6608 1114532 1101a4 bsdtar -- before 1062231 14176 6416 1082823 1085c7 bsdtar -- after 1097259 15032 6408 1118699 1111eb libarchive.so.18 -- before 1095675 14992 6216 1116883 110ad3 libarchive.so.18 -- after Note: This is enabled only with gcc/clang on non-Mac platforms. Ideally we'll have a compile-time check, albeit that seems impossible with our ancient cmake requirement. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
| * cmake: drop -rdynamic aka CMP0065 NEWEmil Velikov2021-11-211-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to version 3.3 cmake would always use -rdynamic. That in itself causes all the internal symbols to be exported, increasing the binaries by 5-10% and making it impossible for the compiler to reason, optimise and discard unused code. The -rdynamic is useful in two cases: - having a third party module (say /usr/lib/foo/foobar.so) which is underlinked and depends on symbols from the main binary - apps like irssi, bash and zsh use that - uses the glibc backtrace, which relies on dlopen/dlsym to fetch the symbol data. Unwind is much better solution, since it replies on the DWARF data Our binaries do not use either of these - so drop the -rdynamic. The autotools build doesn't use it either. text data bss dec hex filename 229000 2120 4424 235544 39818 bsdcat -- before 208324 2120 4424 214868 34754 bsdcat -- after 1093939 12128 24176 1130243 113f03 bsdcpio -- before 1059181 12128 24176 1095485 10b73d bsdcpio -- after 1130091 14264 6608 1150963 118ff3 bsdtar -- before 1093690 14264 6608 1114562 1101c2 bsdtar -- after Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
| * cmake: fold gcc/clang sectionsEmil Velikov2021-11-211-19/+4
| | | | | | | | | | | | | | | | | | | | The flags used across the two are identical, apart from -g. There is no compelling reason, why we would omit -g for debug builds with GCC, while using it with clang. De-duplicate the sections. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* | Merge pull request #1649 from petris/masterMartin Matuška2022-01-031-1/+2
|\ \ | | | | | | Support libzstd compiled with compressor disabled
| * | Support libzstd compiled with compressor disabledPetr Malat2021-12-231-1/+2
| |/ | | | | | | | | | | | | | | | | ZSTD library can be compiled with the compressor disabled, which is handy on space restricted systems as the compressor accounts for more than two thirds of the library size. Detect this case and use libzstd for the decompression only. Compression will be done using zstd binary if it's available.
* | update CMake sizeof definitions to match autotoolslinear cannon2021-12-191-9/+9
|/
* Libarchive 3.5.3devMartin Matuska2021-08-231-1/+1
|
* Release 3.5.2v3.5.2Martin Matuska2021-08-221-1/+1
|
* Fix extracting hardlinks to symlinksMartin Matuska2021-08-211-0/+1
| | | | | | | | On platforms that support the linkat(2) function we can safely write hardlinks to symlinks as linkat(2) does not follow symlinks by default. Fixes #1044
* Fix typosSamanta Navarro2021-06-011-3/+3
| | | | Typos found with codespell
* Catch up with autoconf changes:Christos Zoulas2021-05-081-0/+9
| | | | | HAVE_STRUCT_STATFS HAVE_STRUCT_STATFS_F_IOSIZE
* Libarchive 3.5.2devMartin Matuska2020-12-261-1/+1
|
* Release 3.5.1v3.5.13.5.1Martin Matuska2020-12-261-1/+1
|
* Use built-in strnlen on platforms where not availableMartin Matuska2020-12-081-0/+1
| | | | Fixes #1464
* Libarchive 3.5.1devMartin Matuska2020-12-011-1/+1
|
* Release 3.5.0v3.5.0Martin Matuska2020-12-011-1/+1
|
* Libarchive 3.4.4devMartin Matuska2020-05-201-1/+1
|
* Libarchive 3.4.3v3.4.3Martin Matuska2020-05-201-1/+1
|
* Merge pull request #1363 from aseprite/dont-test-lzma-if-not-neededMartin Matuška2020-04-241-0/+4
|\ | | | | Don't even try HAVE_LZMA_STREAM_ENCODER_MT if ENABLE_LZMA is disabled
| * Don't even try HAVE_LZMA_STREAM_ENCODER_MT if ENABLE_LZMA is disabledDavid Capello2020-04-181-0/+4
| |
* | Merge pull request #1364 from aseprite/macos-no-deprecatedMartin Matuška2020-04-241-0/+5
|\ \ | | | | | | Disable error using deprecated functions on macOS 10.15 to calculate MD5
| * | Disable error using deprecated functions on macOS 10.15 to calculate MD5David Capello2020-04-181-0/+5
| |/
* | Use /w1nnnn instead of /wennnn to enable warnings on MSVC Debug modeDavid Capello2020-04-181-9/+9
|/ | | | | | | | | On MSVC /wennnn treats the specific warning number nnnn as an error: https://docs.microsoft.com/en-us/cpp/build/reference/compiler-option-warning-level But we want to enable this only when ENABLE_WERROR is defined (so the general /WX flag is enough to treat all warnings as errors instead of using /we).
* Libarchive 3.4.3devMartin Matuska2020-02-121-1/+1
|
* Libarchive 3.4.2v3.4.2Martin Matuska2020-02-111-1/+1
|
* Cmake MSVC: replace warning C4061 with C4062Martin Matuska2020-01-281-3/+3
| | | | Fixes #1322
* Add printf attributes to the printflike functions used in tests and fixzoulasc2020-01-231-0/+4
| | | | | | the format errors. Closes #1318
* Windows: use _localtime64_s and _gmtime64_s where appropriateMartin Matuska2020-01-131-0/+1
|
* Add mbed TLS as optional crypto providerMartin Matuska2020-01-031-1/+30
| | | | | Make Nettle optional and OpenSSL default Fixes #1301
* Libarchive 3.4.2devMartin Matuska2019-12-301-1/+1
|
* Libarchive 3.4.1v3.4.1Martin Matuska2019-12-301-1/+1
|
* Set up 3.4.1devMartin Matuska2019-06-111-1/+1
|
* 3.4.0v3.4.0Martin Matuska2019-06-111-1/+1
|
* Fix typo in CMakeLists.txt and build/ci/build.shMartin Matuska2019-06-011-1/+1
|
* archive_write_disk_posix: check_symlinks_fsobj() without chdir()Martin Matuska2019-05-261-0/+1
| | | | only on platforms with openat(), fstatat() and unlinkat() support