浏览代码

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)