We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b8b50b commit 2fcc481Copy full SHA for 2fcc481
2 files changed
configure.ac
@@ -176,6 +176,9 @@ AC_FUNC_MALLOC
176
AC_FUNC_REALLOC
177
AC_CHECK_FUNCS([clock_gettime memset socket strdup strerror strndup]) #pthread_setaffinity_np])
178
179
+AC_CHECK_LIB(m, sqrt, MATH_LIBS="-lm")
180
+AC_SUBST(MATH_LIBS)
181
+
182
AC_CONFIG_FILES([Makefile src/Makefile tools/ethercatdiag/Makefile tools/eepromtool/Makefile tools/example_with_dc/Makefile tools/foe_tool/Makefile libethercat.pc])
183
AC_OUTPUT
184
tools/example_with_dc/Makefile.am
@@ -1,7 +1,7 @@
1
ACLOCAL_AMFLAGS = -I m4
2
3
LDADD = $(top_builddir)/src/.libs/libethercat.la
4
-LIBS = @LIBOSAL_LIBS@ -lm
+LIBS = @LIBOSAL_LIBS@ @MATH_LIBS@
5
6
bin_PROGRAMS = example_with_dc
7
example_with_dc_SOURCES = example_with_dc.c
0 commit comments