diff --git a/configure.ac b/configure.ac index 6103e05..13cd286 100644 --- a/configure.ac +++ b/configure.ac @@ -57,6 +57,9 @@ AM_CFLAGS="${AM_CFLAGS} ${MEM_OPT_FLAGS}" AM_CFLAGS="${AM_CFLAGS} ${CFLAGS}" AC_SUBST(AM_CFLAGS) +AM_LDFLAGS="" +AC_SUBST(AM_LDFLAGS) + AC_CONFIG_FILES([Makefile docs/Makefile tests/Makefile diff --git a/src/Makefile.am b/src/Makefile.am index dbdeeb7..725f647 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,7 +1,8 @@ ACLOCAL_AMFLAGS = -I m4 AUTOMAKE_OPTIONS = subdir-objects -AM_CFLAGS += -I../include/ +AM_CFLAGS += -I../include/ -std=c99 -DREENTRANT -lpthread +AM_LDFLAGS += -lpthread TR_HASH = hexdecode.c \ hexencode.c \ @@ -23,13 +24,15 @@ bin_PROGRAMS = trsha1speed trencodespeed libtrhashing_la_SOURCES = $(TR_HASH) libtrhashing_la_CFLAGS = $(AM_CFLAGS) -std=c99 $(OPENSSL) -libtrhashing_la_LIBADD = -libtrhashing_la_LDFLAGS = -version-info 0:0:0 +libtrhashing_la_LIBADD = +libtrhashing_la_LDFLAGS = -version-info 0:0:0 $(AM_LDFLAGS) trsha1speed_SOURCES = sha1speed.c trsha1speed_CFLAGS = $(AM_CFLAGS) $(OPENSSL) trsha1speed_LDADD = -ltrhashing -ltrbase -lcrypto -luuid +trsha1speed_LDFLAGS = $(AM_LDFLAGS) trencodespeed_SOURCES = encodespeed.c trencodespeed_CFLAGS = $(AM_CFLAGS) trencodespeed_LDADD = -ltrhashing -ltrbase -lcrypto -luuid +trencodespeed_LDFLAGS = $(AM_LDFLAGS)