Skip to content

Commit 130cbe7

Browse files
committed
fixed: using math functions in util, but failed to link libm.
The new utility functions added to libspnav 1.x use trigonometric and sqrt functions from the math library, but linking to libm was previously omitted from the makefile. Closes bug report #20.
1 parent f0a7af9 commit 130cbe7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ libpaths = -L/usr/local/lib -L/usr/X11R6/lib
1111
CC ?= gcc
1212
AR ?= ar
1313
CFLAGS = $(opt) $(dbg) -std=c89 $(pic) -pedantic -Wall -fno-strict-aliasing $(incpaths) $(user_cflags)
14-
LDFLAGS = $(libpaths) $(user_ldflags) $(xlib)
14+
LDFLAGS = $(libpaths) $(user_ldflags) $(xlib) -lm
1515

1616
ifeq ($(shell uname -s), Darwin)
1717
lib_so = libspnav.dylib

0 commit comments

Comments
 (0)