Commit 451375a5b0d11cf951ac3c49316fac26a3887961
1 parent
73e6d512
Use c99 standard and DREENTRANT for thread save libc
Showing
2 changed files
with
9 additions
and
3 deletions
| 1 | 1 | ACLOCAL_AMFLAGS = -I m4 |
| 2 | 2 | AUTOMAKE_OPTIONS = subdir-objects |
| 3 | 3 | |
| 4 | -AM_CFLAGS += -I../include/ | |
| 4 | +AM_CFLAGS += -I../include/ -std=c99 -DREENTRANT -lpthread | |
| 5 | +AM_LDFLAGS += -lpthread | |
| 5 | 6 | |
| 6 | 7 | TR_HASH = hexdecode.c \ |
| 7 | 8 | hexencode.c \ |
| ... | ... | @@ -23,13 +24,15 @@ bin_PROGRAMS = trsha1speed trencodespeed |
| 23 | 24 | |
| 24 | 25 | libtrhashing_la_SOURCES = $(TR_HASH) |
| 25 | 26 | libtrhashing_la_CFLAGS = $(AM_CFLAGS) -std=c99 $(OPENSSL) |
| 26 | -libtrhashing_la_LIBADD = | |
| 27 | -libtrhashing_la_LDFLAGS = -version-info 0:0:0 | |
| 27 | +libtrhashing_la_LIBADD = | |
| 28 | +libtrhashing_la_LDFLAGS = -version-info 0:0:0 $(AM_LDFLAGS) | |
| 28 | 29 | |
| 29 | 30 | trsha1speed_SOURCES = sha1speed.c |
| 30 | 31 | trsha1speed_CFLAGS = $(AM_CFLAGS) $(OPENSSL) |
| 31 | 32 | trsha1speed_LDADD = -ltrhashing -ltrbase -lcrypto -luuid |
| 33 | +trsha1speed_LDFLAGS = $(AM_LDFLAGS) | |
| 32 | 34 | |
| 33 | 35 | trencodespeed_SOURCES = encodespeed.c |
| 34 | 36 | trencodespeed_CFLAGS = $(AM_CFLAGS) |
| 35 | 37 | trencodespeed_LDADD = -ltrhashing -ltrbase -lcrypto -luuid |
| 38 | +trencodespeed_LDFLAGS = $(AM_LDFLAGS) | ... | ... |
Please
register
or
login
to post a comment