Browse Source

Use c99 standard and DREENTRANT for thread save libc

1.0.0
Georg Hopp 11 years ago
parent
commit
451375a5b0
  1. 3
      configure.ac
  2. 7
      src/Makefile.am

3
configure.ac

@ -57,6 +57,9 @@ AM_CFLAGS="${AM_CFLAGS} ${MEM_OPT_FLAGS}"
AM_CFLAGS="${AM_CFLAGS} ${CFLAGS}" AM_CFLAGS="${AM_CFLAGS} ${CFLAGS}"
AC_SUBST(AM_CFLAGS) AC_SUBST(AM_CFLAGS)
AM_LDFLAGS=""
AC_SUBST(AM_LDFLAGS)
AC_CONFIG_FILES([Makefile AC_CONFIG_FILES([Makefile
docs/Makefile docs/Makefile
tests/Makefile tests/Makefile

7
src/Makefile.am

@ -1,7 +1,8 @@
ACLOCAL_AMFLAGS = -I m4 ACLOCAL_AMFLAGS = -I m4
AUTOMAKE_OPTIONS = subdir-objects AUTOMAKE_OPTIONS = subdir-objects
AM_CFLAGS += -I../include/
AM_CFLAGS += -I../include/ -std=c99 -DREENTRANT -lpthread
AM_LDFLAGS += -lpthread
TR_HASH = hexdecode.c \ TR_HASH = hexdecode.c \
hexencode.c \ hexencode.c \
@ -24,12 +25,14 @@ bin_PROGRAMS = trsha1speed trencodespeed
libtrhashing_la_SOURCES = $(TR_HASH) libtrhashing_la_SOURCES = $(TR_HASH)
libtrhashing_la_CFLAGS = $(AM_CFLAGS) -std=c99 $(OPENSSL) libtrhashing_la_CFLAGS = $(AM_CFLAGS) -std=c99 $(OPENSSL)
libtrhashing_la_LIBADD = libtrhashing_la_LIBADD =
libtrhashing_la_LDFLAGS = -version-info 0:0:0
libtrhashing_la_LDFLAGS = -version-info 0:0:0 $(AM_LDFLAGS)
trsha1speed_SOURCES = sha1speed.c trsha1speed_SOURCES = sha1speed.c
trsha1speed_CFLAGS = $(AM_CFLAGS) $(OPENSSL) trsha1speed_CFLAGS = $(AM_CFLAGS) $(OPENSSL)
trsha1speed_LDADD = -ltrhashing -ltrbase -lcrypto -luuid trsha1speed_LDADD = -ltrhashing -ltrbase -lcrypto -luuid
trsha1speed_LDFLAGS = $(AM_LDFLAGS)
trencodespeed_SOURCES = encodespeed.c trencodespeed_SOURCES = encodespeed.c
trencodespeed_CFLAGS = $(AM_CFLAGS) trencodespeed_CFLAGS = $(AM_CFLAGS)
trencodespeed_LDADD = -ltrhashing -ltrbase -lcrypto -luuid trencodespeed_LDADD = -ltrhashing -ltrbase -lcrypto -luuid
trencodespeed_LDFLAGS = $(AM_LDFLAGS)
Loading…
Cancel
Save