From 6af85a638967209ef5340c5c61eb9edac31c6678 Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 8 Dec 2013 12:07:21 +0100 Subject: [PATCH] xspice, move `-lm' to the end of the linker command line --- src/xspice/icm/GNUmakefile.in | 2 +- src/xspice/icm/makedefs.in | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/xspice/icm/GNUmakefile.in b/src/xspice/icm/GNUmakefile.in index f4f2f7016..a72cb488c 100644 --- a/src/xspice/icm/GNUmakefile.in +++ b/src/xspice/icm/GNUmakefile.in @@ -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") diff --git a/src/xspice/icm/makedefs.in b/src/xspice/icm/makedefs.in index 151e37367..011d245f0 100644 --- a/src/xspice/icm/makedefs.in +++ b/src/xspice/icm/makedefs.in @@ -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