initialize ltc_mp to force allocation under all compilers, including clang on macOS
This commit is contained in:
parent
32d60ac134
commit
cfce691a50
@ -68,7 +68,7 @@ There are several `makefile`s provided. Please choose the one that fits best for
|
||||
|
||||
| makefile | use-case |
|
||||
| -------- | -------- |
|
||||
| `makefile` | builds a static library (GNU Make required, broken on Mac OSX - use `makefile.unix` instead) |
|
||||
| `makefile` | builds a static library (GNU Make required) |
|
||||
| `makefile.shared` | builds a shared (and static) library (GNU Make required) |
|
||||
| `makefile.unix` | for unusual UNIX platforms, or if you do not have GNU Make |
|
||||
| `makefile.mingw` | for usage with the mingw compiler on MS Windows |
|
||||
|
6
makefile
6
makefile
@ -15,12 +15,6 @@ endif
|
||||
|
||||
PLATFORM := $(shell uname | sed -e 's/_.*//')
|
||||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
ifeq ($(PLATFORM), Darwin)
|
||||
$(error Known to not work on Mac, please use makefile.unix for static libraries or makefile.shared for shared libraries)
|
||||
endif
|
||||
endif
|
||||
|
||||
# ranlib tools
|
||||
ifndef RANLIB
|
||||
RANLIB:=$(CROSS_COMPILE)ranlib
|
||||
|
@ -8,7 +8,8 @@
|
||||
*/
|
||||
#include "tomcrypt.h"
|
||||
|
||||
ltc_math_descriptor ltc_mp;
|
||||
/* Initialize ltc_mp to nulls, to force allocation on all platforms, including macOS. */
|
||||
ltc_math_descriptor ltc_mp = { 0 };
|
||||
|
||||
/* ref: $Format:%D$ */
|
||||
/* git commit: $Format:%H$ */
|
||||
|
Loading…
Reference in New Issue
Block a user