Browse Source

Add needed linked libraries to libckpool

master
Con Kolivas 11 years ago
parent
commit
c55215a700
  1. 6
      configure.ac
  2. 1
      src/Makefile.am

6
configure.ac

@ -38,4 +38,10 @@ AC_CHECK_HEADERS(alloca.h pthread.h stdio.h math.h)
AC_CHECK_HEADERS(sys/types.h sys/socket.h) AC_CHECK_HEADERS(sys/types.h sys/socket.h)
AC_CHECK_HEADERS(stdint.h netinet/in.h netinet/tcp.h) AC_CHECK_HEADERS(stdint.h netinet/in.h netinet/tcp.h)
PTHREAD_LIBS="-lpthread"
MATH_LIBS="-lm"
AC_SUBST(PTHREAD_LIBS)
AC_SUBST(MATH_LIBS)
AC_OUTPUT([Makefile] [src/Makefile]) AC_OUTPUT([Makefile] [src/Makefile])

1
src/Makefile.am

@ -2,6 +2,7 @@ ACLOCAL_AMFLAGS = -I m4
lib_LTLIBRARIES = libckpool.la lib_LTLIBRARIES = libckpool.la
libckpool_la_SOURCES = libckpool.c libckpool_la_SOURCES = libckpool.c
libckpool_la_LIBADD = @MATH_LIBS@ @PTHREAD_LIBS@
bin_PROGRAMS = ckpool bin_PROGRAMS = ckpool
ckpool_SOURCES = ckpool.c ckpool_SOURCES = ckpool.c

Loading…
Cancel
Save