Commit d2a704420988e50aaec62db8bc8c008a0dfed3f6
1 parent
0f31960f
Use c99 standard and DREENTRANT for thread save libc
Showing
2 changed files
with
6 additions
and
1 deletions
@@ -57,6 +57,9 @@ AM_CFLAGS="${AM_CFLAGS} ${MEM_OPT_FLAGS}" | @@ -57,6 +57,9 @@ AM_CFLAGS="${AM_CFLAGS} ${MEM_OPT_FLAGS}" | ||
57 | AM_CFLAGS="${AM_CFLAGS} ${CFLAGS}" | 57 | AM_CFLAGS="${AM_CFLAGS} ${CFLAGS}" |
58 | AC_SUBST(AM_CFLAGS) | 58 | AC_SUBST(AM_CFLAGS) |
59 | 59 | ||
60 | +AM_LDFLAGS="" | ||
61 | +AC_SUBST(AM_LDFLAGS) | ||
62 | + | ||
60 | AC_CONFIG_FILES([Makefile | 63 | AC_CONFIG_FILES([Makefile |
61 | docs/Makefile | 64 | docs/Makefile |
62 | tests/Makefile | 65 | tests/Makefile |
1 | ACLOCAL_AMFLAGS = -I m4 | 1 | ACLOCAL_AMFLAGS = -I m4 |
2 | AUTOMAKE_OPTIONS = subdir-objects | 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 | TRIO = stream.c \ | 7 | TRIO = stream.c \ |
7 | read.c \ | 8 | read.c \ |
@@ -26,3 +27,4 @@ lib_LTLIBRARIES = libtrio.la | @@ -26,3 +27,4 @@ lib_LTLIBRARIES = libtrio.la | ||
26 | libtrio_la_SOURCES = $(TRIO) | 27 | libtrio_la_SOURCES = $(TRIO) |
27 | libtrio_la_CFLAGS = $(AM_CFLAGS) | 28 | libtrio_la_CFLAGS = $(AM_CFLAGS) |
28 | libtrio_la_LIBADD = | 29 | libtrio_la_LIBADD = |
30 | +libtrio_la_LDFLAGS = -version-info 0:0:0 $(AM_LDFLAGS) |
Please
register
or
login
to post a comment