xspice, move `-lm' to the end of the linker command line
This commit is contained in:
parent
8ad6bd209d
commit
6af85a6389
|
|
@ -89,7 +89,7 @@ cm-clean :
|
||||||
#-----
|
#-----
|
||||||
|
|
||||||
$(cm)/$(cm).cm : $(cm-objs)
|
$(cm)/$(cm).cm : $(cm-objs)
|
||||||
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(LDFLAGS) $^ -o $@
|
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(LDFLAGS) $^ $(LIBS) -o $@
|
||||||
|
|
||||||
# "order-only" prerequisites
|
# "order-only" prerequisites
|
||||||
# (info "(make) Prerequisite Types")
|
# (info "(make) Prerequisite Types")
|
||||||
|
|
|
||||||
|
|
@ -41,8 +41,10 @@ endif
|
||||||
# Path to the cmpp utility
|
# Path to the cmpp utility
|
||||||
CMPP = $(top_builddir)/src/xspice/cmpp/cmpp
|
CMPP = $(top_builddir)/src/xspice/cmpp/cmpp
|
||||||
|
|
||||||
|
LIBS = -lm
|
||||||
|
|
||||||
# Flags to use when linking shared library
|
# Flags to use when linking shared library
|
||||||
LDFLAGS = -shared -lm
|
LDFLAGS = -shared
|
||||||
ifeq ($(ISMINGW), 1)
|
ifeq ($(ISMINGW), 1)
|
||||||
LDFLAGS = -shared @LDFLAGS@
|
LDFLAGS = -shared @LDFLAGS@
|
||||||
endif
|
endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue