Browse Source

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

pre-master-46
rlar 13 years ago
parent
commit
6af85a6389
  1. 2
      src/xspice/icm/GNUmakefile.in
  2. 4
      src/xspice/icm/makedefs.in

2
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")

4
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

Loading…
Cancel
Save