src

Branch


Log

Author Commit Date CI Message
Guillem Jover 054bca1a 2023-04-11T00:19:46 build: Terminate lists in variables with «# EOL» This means we can add a trailing «\» to every element, so that they can be removed without requiring modification of other lines, and can be easily sorted. Replace the old usage of $(nil) which could possibly end up with junk added if such variable is ever defined, in the environment.
Guillem Jover 4c5931f5 2023-04-06T20:37:41 Sync SHA2 changes from OpenBSD This adds support for SHA224 and SHA512-256.
Guillem Jover 9934d941 2023-04-05T23:53:43 Sync SHA1 changes from OpenBSD Remove SH specific code, and remove conditional for the digest argument.
Guillem Jover 457e30ae 2023-04-09T00:14:30 Sync RMD160 changes from OpenBSD
Guillem Jover b2e54bcd 2023-04-09T00:10:07 Sync MD5 changes from OpenBSD
Guillem Jover ee56a52a 2023-04-09T00:05:02 Sync MD4 changes from OpenBSD Get all changes before this MD4 implementation got removed from OpenBSD.
Guillem Jover 09d58246 2023-04-08T20:53:37 Remove unused <assert.h>
Guillem Jover 08b2c5dd 2023-04-08T23:43:04 build: Rename libmd_alias() to libmd_strong_alias()
Guillem Jover ed695998 2023-03-31T23:47:38 On Darwin use assembler to support symbol aliases The alias attribute is not supported on Darwin, but we can alias using assembler directives instead. At the same time we switch the non-ELF fallback implementation for libmd_symver_default to use libmd_alias.
Guillem Jover b74b7772 2023-03-28T03:25:35 build: Do not use strong aliases on macOS These are not supported, and when trying to link the library we get the following error message: error: aliases are not supported on darwin
David Seifert 04781b0a 2021-10-05T04:34:48 build: Avoid non-portable '$<' in non-inference rules OpenBSD's 'pmake' chokes on these. Signed-off-by: Guillem Jover <guillem@hadrons.org>
David Seifert 85f7006c 2021-10-05T04:20:30 build: Explicitly depend on sed Signed-off-by: Guillem Jover <guillem@hadrons.org>
Guillem Jover b7d06e0d 2021-02-19T23:56:07 Fix signedness type mismatch comparisons Change the variable type or use a cast. Warned-by: gcc
Guillem Jover 281dab62 2021-02-19T07:13:28 Place static keyword before const in function definitions Warned-by: gcc
Guillem Jover 6b3f9f75 2021-01-02T16:26:38 build: Provide wrapper functions instead of aliases in DLL built with MSVC On Windows we cannot use proper aliases, and using the /EXPORT linker flag is too cumbersome, as it does not work when static linking, and when dynamic linking it does not make the aliases visible within the DLL itself. Just use normal function wrapper in those cases, which are way more maintainable.
Michael Haubenwallner 0f573400 2020-12-22T18:47:47 build: Fix out of tree builds Adding local-link.h as private header file requires $(srcdir) on AM_CPPFLAGS to be found by generated sources when builddir != srcdir. Do not use libmd.sym from $(srcdir), as it is a generated file. [guillem@hadrons.org: - Remove unrelated line moves. ] Signed-off-by: Guillem Jover <guillem@hadrons.org>
Guillem Jover 52cb9cbe 2020-09-17T03:19:51 build: Only depend on libmd.sym when using it
Guillem Jover 42d691a5 2020-12-21T20:19:54 build: Move local-link.h from libmd_la_helper_sources to libmd_la_SOURCES This is not a generated file, so it needs to be listed in the library SOURCES variable. Fixes: commit 9cc938450392d64440de5c7db27903dff9922728
Guillem Jover bd364c6d 2019-08-28T11:30:29 Switch SHA2 symbols from weak to strong aliases There is no good reason to have these as weak symbols at all. And it makes building on Windows (Cygwin, MinGW) harder as it does not support weak symbols. Based-on-patch-by: Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com> Signed-off-by: Guillem Jover <guillem@hadrons.org>
Guillem Jover 9cc93845 2019-08-28T11:19:37 Import local-link header from libbsd This provides several macros for versioned symbols and linking magic.
Michael Haubenwallner 09b3ad8c 2019-08-28T11:16:54 Remove unused weak symbol declarations for MD2 functions These are not currently used, as they are not part of the versioned symbols export map. Signed-off-by: Guillem Jover <guillem@hadrons.org>
Michael Haubenwallner 9a77023f 2019-08-22T16:55:44 build: Use <unistd.h> only if available Some target platforms do not have <unistd.h>, notably Windows when using vanilla MSVC toolchain. Note: The AC_CHECK_HEADERS([unistd.h]) is redundant with LT_INIT, but there is no guarantee for that. [guillem@hadrons.org: - Use AC_CHECK_HEADERS instead of AC_CHECK_HEADER. - Quote argument to AC_CHECK_HEADERS. ] Signed-off-by: Guillem Jover <guillem@hadrons.org>
Rainer Müller bf04c411 2017-09-29T17:02:33 build: Invoke sed with portable regex The previous sed expression only worked with GNU sed, as the '\+' literal is an extension to basic regex. Use portable syntax instead that also works with other implementations of sed(1), for example on macOS. Signed-off-by: Guillem Jover <guillem@hadrons.org>
Guillem Jover cc6881c6 2017-06-05T05:10:51 Remove unused __RCSID macro usage This is an obsolescent practice, just stop conditionally using this macro.
Guillem Jover 0def1829 2017-06-01T03:00:05 Stop using non-portable <sys/param.h> There are platforms without <sys/param.h>, so we better avoid the header altogether, and add the required MIN macro outselves. Based-on-patch-by: Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
Guillem Jover 4c94d7fd 2017-05-31T06:55:35 build: Use an export symbols file if there is no version script support We generate the symbol list from the version script to avoid repeating ourselves and potentially getting the lists out-of-sync. Proposed-by: Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
Guillem Jover 04d92f90 2017-05-31T06:58:23 build: Do not override the default DEPENDENCIES for libmd Extend it instead via EXTRA_*_DEPENDENCIES, to make sure that we preserve the builtin library dependencies generated from LIBADD.
Guillem Jover b6be272e 2017-05-31T06:45:25 build: Detect version script linker support at configure time This is not a widely supported feature, so only use if in case the linker does support it. Proposed-by: Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
Michael Haubenwallner 555d5074 2017-04-10T13:10:45 build: Switch to AC_C_BIGENDIAN defining WORD_BIGENDIAN We should use the autoconf macro instead of expecting the system to provide the endianness information, which many do not. [guillem@hadrons.org: - Use autoconf macro instead of gnulib one. - Slightly reword commit message. ] Signed-off-by: Guillem Jover <guillem@hadrons.org>
Guillem Jover c3c8d859 2017-06-01T02:43:22 build: Drop GCC specific compiler flag -include Instead, explicitly include <config.h> in library and test source files for increased portability. Based-on-patch-by: Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
Michael Haubenwallner 765a605e 2017-04-10T13:10:39 build: Add -no-undefined libtool flag We have no need for undefined symbols, so we can let the shared library build even on systems without support for undefined symbols. [guillem@hadrons.org: - Place the option on its own line. - Slightly reword commit message. ] Signed-off-by: Guillem Jover <guillem@hadrons.org>
Michael Haubenwallner bb131b2e 2017-04-10T13:10:38 Stop using non-portable <sys/cdefs.h> For portability, we should not rely on the __BEGIN_DECLS, __END_DECLS and __P to be predefined somewhere. For __P, we just remove its usage as we do not support pre-ANSI-C compilers. [guillem@hadrons.org: - Separate extern declarations with newlines. - Slightly reword commit message. ] Signed-off-by: Guillem Jover <guillem@hadrons.org>
Guillem Jover f1291e88 2011-05-29T04:46:46 build: Use <endian.h> when <sys/endian.h> is not available
Guillem Jover 18ebbe24 2012-05-29T05:44:54 Use stdint types instead of BSD u_int ones
Guillem Jover 79b3a0b7 2011-05-29T04:48:16 build: Add build infrastructure
Guillem Jover c5179609 2015-06-29T17:32:14 build: Define a dummy _DIAGASSERT
Guillem Jover 7a257475 2014-07-19T16:49:55 build: Add weak_alias definition
Guillem Jover ee0b2299 2011-05-29T03:22:21 Initial import from OpenBSD and NetBSD