Skip to content

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

Description

@illiliti

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:

| `makefile.shared` | builds a shared (and static) library (GNU Make required) |

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions