]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Makefile maintenance
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Mon, 2 Dec 2024 17:15:39 +0000 (14:15 -0300)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Mon, 2 Dec 2024 17:15:39 +0000 (14:15 -0300)
commitd571a4258ff1baefbe8ef4727cbf421646670ee6
treecbb5c313b125f336ee9a0e52252358d8e85da2e4
parent7711a247beb1119ee1349e9ddc0d13cd6ab08917
Makefile maintenance

Triggered by fixing compilation in MacOS.

- Rename extension.h to ext.h; the former collides with Extension.h.
- Move _DEFAULT_SOURCE to the source; it's not widespread enough for
  Makefile.am.
- Add _DARWIN_C_SOURCE, needed by MacOS for timegm() and mkdtemp().
- Add -flto to unit test AM_CFLAGS. This minimizes superflous #includes
  and mocks needed, and will hopefully make them consistent across
  platforms.
- Delete _BSD_SOURCE; it seems orphaned. (Though see below.)

Works on Linux and Mac. Might have broken the BSDs; I can't test them
ATM.
24 files changed:
src/Makefile.am
src/asn1/asn1c/CRL.c
src/asn1/asn1c/Certificate.c
src/common.c
src/ext.c [moved from src/extension.c with 99% similarity]
src/ext.h [moved from src/extension.h with 100% similarity]
src/libcrypto_util.c
src/log.c
src/main.c
src/object/certificate.c
src/object/crl.c
src/print_file.c
test/Makefile.am
test/cache_test.c
test/hash_test.c
test/object/manifest_test.c
test/object/tal_test.c
test/rrdp_test.c
test/rrdp_update_test.c
test/rtr/db/db_table_test.c
test/rtr/db/deltas_array_test.c
test/rtr/db/vrps_test.c
test/rtr/pdu_handler_test.c
test/task_test.c