Selaa lähdekoodia

Link with -lm

This avoids the following error:
  src/docsis_encode.c:337: undefined reference to `trunc'
Richard Laager 15 vuotta sitten
vanhempi
commit
c33e2f9525
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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)