makefile.shared does not build static library despite readme stating so #808

Open
opened 2026-09-09 22:26:02 -05:00 by illiliti · 0 comments
illiliti commented 2026-09-09 22:26:02 -05:00 (Migrated from github.com)

Prerequisites

  • Checked the developer manual
  • Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=repo%3Alibtom%2Flibtomcrypt
  • Checked that your issue isn't due to the fact that you're using asymmetric cryptography and you forgot linking in and/or setting an MPI provider (usually this causes either random crashes or runtime errors like LTC_ARGCHK 'ltc_mp.name != NULL' failure ...). c.f. Ch. "Math Descriptors" of the developer manual.
  • Checked that your issue isn't related to TomsFastMath's limitation that PK operations can by default only be done with max. 2048bit keys

Description

The README says:

github.com/libtom/libtomcrypt@6c6d5104de/README.md (L87)

but makefile.shared builds only shared lib.

Steps to Reproduce

make CFLAGS='-DUSE_GMP -DGMP_DESC' EXTRA_LIBS='-lgmp' -f makefile.shared

Version

v1.18.2-1245-g6c6d5104

Additional Information

The readme is misleading, yes, but the core problem is that makefile.shared should be fixed to build static lib as well, otherwise what's the proper way to build both static and shared library? Doing two separate builds with makefile.unix is just waste of time and resources when it could be done in a single run

### Prerequisites * [x] Checked the developer manual * [x] Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=repo%3Alibtom%2Flibtomcrypt * [x] Checked that your issue isn't due to the fact that you're using asymmetric cryptography and you forgot linking in and/or setting an MPI provider (usually this causes either random crashes or runtime errors like `LTC_ARGCHK 'ltc_mp.name != NULL' failure ...`). c.f. Ch. "Math Descriptors" of the developer manual. * [x] Checked that your issue isn't related to TomsFastMath's limitation that PK operations can by default only be done with max. 2048bit keys ### Description The README says: https://github.com/libtom/libtomcrypt/blob/6c6d5104de66f3ca0dfd7b68540ef86869982b07/README.md?plain=1#L87 but makefile.shared builds only shared lib. ### Steps to Reproduce ``` make CFLAGS='-DUSE_GMP -DGMP_DESC' EXTRA_LIBS='-lgmp' -f makefile.shared ``` ### Version v1.18.2-1245-g6c6d5104 ### Additional Information The readme is misleading, yes, but the core problem is that makefile.shared should be fixed to build static lib as well, otherwise what's the proper way to build both static and shared library? Doing two separate builds with makefile.unix is just waste of time and resources when it could be done in a single run
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-libtom/libtomcrypt#808
No description provided.