Переглянути джерело

Link with -lm

This avoids the following error:
  src/docsis_encode.c:337: undefined reference to `trunc'
Richard Laager 15 роки тому
батько
коміт
c33e2f9525
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      src/Makefile.am

+ 1 - 0
src/Makefile.am

@@ -1,5 +1,6 @@
 bin_PROGRAMS = docsis
 docsis_SOURCES = docsis.c ethermac.c md5.c docsis_encode.c docsis_decode.c docsis_snmp.c docsis_yy.y docsis_lex.l hmac_md5.c
+docsis_LDADD = -lm
 
 # set the include path found by configure
 INCLUDES = $(all_includes) $(NETSNMP_CFLAGS)