contrib: gpg-error / gcrypt
doc:
https://lists.gnupg.org/pipermail/gnupg-devel/2016-March/030936.html
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=891663
Steps to add :
syscfg/lock-obj-pub.wasm32-unknown-emscripten.h
-
copy config.h in src/
-
then :
emcc -DHAVE_CONFIG_H -I. -I../../src -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/usr/src/repositories/libgpg-error=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -c -o gen-posix-lock-obj.o ../../src/gen-posix-lock-obj.c
CC=emcc /bin/bash libtool --tag=CC --mode=link emcc -g -O2 -fdebug-prefix-map=/usr/src/repositories/libgpg-error=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -o gen-posix-lock-obj gen-posix-lock-obj.o
[b1ue@b1uesky syscfg]$ node gen-posix-lock-obj
## lock-obj-pub.wasm32-unknown-emscripten.h
## File created by gen-posix-lock-obj - DO NOT EDIT
## To be included by mkheader into gpg-error.h
typedef struct
{
long _vers;
union {
volatile char _priv[28];
long _x_align;
long *_xp_align;
} u;
} gpgrt_lock_t;
#define GPGRT_LOCK_INITIALIZER {1,{{0,0,0,0,0,0,0,0, \
0,0,0,0,0,0,0,0, \
0,0,0,0,0,0,0,0, \
0,0,0,0}}}
##
## Local Variables:
## mode: c
## buffer-read-only: t
## End:
##
Edited by Mehdi Sabwat