exthereum / libsecp256k1

Erlang NIF bindings for libsecp256k1 ECDSA library
MIT License
8 stars 23 forks source link

Link Libraries after Objects #12

Closed hayesgm closed 6 years ago

hayesgm commented 6 years ago

This patch changes the order of the cc command so that we add the build target (.c) file before we link the gmp library (-lgmp). The alternate ordering was breaking the build on musl. Additionally, we fix a variable substitution that was missing parens (thanks make syntax!).