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.
pull/21/head
John Tsiombikas 2023-06-06 21:55:46 +03:00
rodzic f0a7af9587
commit 130cbe710a
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -11,7 +11,7 @@ libpaths = -L/usr/local/lib -L/usr/X11R6/lib
CC ?= gcc
AR ?= ar
CFLAGS = $(opt) $(dbg) -std=c89 $(pic) -pedantic -Wall -fno-strict-aliasing $(incpaths) $(user_cflags)
LDFLAGS = $(libpaths) $(user_ldflags) $(xlib)
LDFLAGS = $(libpaths) $(user_ldflags) $(xlib) -lm
ifeq ($(shell uname -s), Darwin)
lib_so = libspnav.dylib