xspice, move `-lm' to the end of the linker command line

This commit is contained in:
rlar 2013-12-08 12:07:21 +01:00
parent 8ad6bd209d
commit 6af85a6389
2 changed files with 4 additions and 2 deletions

View File

@ -89,7 +89,7 @@ cm-clean :
#-----
$(cm)/$(cm).cm : $(cm-objs)
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(LDFLAGS) $^ -o $@
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(LDFLAGS) $^ $(LIBS) -o $@
# "order-only" prerequisites
# (info "(make) Prerequisite Types")

View File

@ -41,8 +41,10 @@ endif
# Path to the cmpp utility
CMPP = $(top_builddir)/src/xspice/cmpp/cmpp
LIBS = -lm
# Flags to use when linking shared library
LDFLAGS = -shared -lm
LDFLAGS = -shared
ifeq ($(ISMINGW), 1)
LDFLAGS = -shared @LDFLAGS@
endif