From 0dea8b8d9fb48df577fb6f28846e498d3c0bb9bf Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 3 Nov 2022 16:53:21 +0700 Subject: [PATCH] sim: drop -lm from SIM_EXTRA_LIBS We have configure tests for this in the top-level configure script to link this when necessary, so we don't need to explicitly list it for specific ports. --- sim/aarch64/Makefile.in | 2 -- sim/arm/Makefile.in | 1 - sim/bfin/Makefile.in | 2 +- sim/erc32/Makefile.in | 2 +- sim/moxie/Makefile.in | 1 - sim/or1k/Makefile.in | 2 -- sim/sh/Makefile.in | 1 - 7 files changed, 2 insertions(+), 9 deletions(-) diff --git a/sim/aarch64/Makefile.in b/sim/aarch64/Makefile.in index 95de0f96cc6..72a37053b04 100644 --- a/sim/aarch64/Makefile.in +++ b/sim/aarch64/Makefile.in @@ -21,8 +21,6 @@ ## COMMON_PRE_CONFIG_FRAG -SIM_EXTRA_LIBS = -lm - SIM_OBJS = \ $(SIM_NEW_COMMON_OBJS) \ interp.o \ diff --git a/sim/arm/Makefile.in b/sim/arm/Makefile.in index d7d50d54289..f1f58ab2784 100644 --- a/sim/arm/Makefile.in +++ b/sim/arm/Makefile.in @@ -18,7 +18,6 @@ ## COMMON_PRE_CONFIG_FRAG SIM_EXTRA_CFLAGS = -DMODET -SIM_EXTRA_LIBS = -lm SIM_OBJS = \ wrapper.o \ diff --git a/sim/bfin/Makefile.in b/sim/bfin/Makefile.in index f4f30c48bcb..62f7b71ded1 100644 --- a/sim/bfin/Makefile.in +++ b/sim/bfin/Makefile.in @@ -60,7 +60,7 @@ SIM_EXTRA_HW_DEVICES = \ eth_phy SIM_EXTRA_CFLAGS = $(SDL_CFLAGS) -SIM_EXTRA_LIBS = $(SDL_LIBS) -lm +SIM_EXTRA_LIBS = $(SDL_LIBS) ## COMMON_POST_CONFIG_FRAG diff --git a/sim/erc32/Makefile.in b/sim/erc32/Makefile.in index 013b604be49..7dd5102bccb 100644 --- a/sim/erc32/Makefile.in +++ b/sim/erc32/Makefile.in @@ -23,7 +23,7 @@ READLINE_SRC = $(srcroot)/readline/readline SIM_OBJS = exec.o erc32.o func.o help.o float.o interf.o SIM_RUN_OBJS = sis.o SIM_EXTRA_CFLAGS = $(READLINE_CFLAGS) -SIM_EXTRA_LIBS = $(READLINE_LIB) $(TERMCAP_LIB) -lm +SIM_EXTRA_LIBS = $(READLINE_LIB) $(TERMCAP_LIB) SIM_EXTRA_INSTALL = install-sis SIM_EXTRA_CLEAN = clean-sis diff --git a/sim/moxie/Makefile.in b/sim/moxie/Makefile.in index 1c01ec60516..850b8c81ec0 100644 --- a/sim/moxie/Makefile.in +++ b/sim/moxie/Makefile.in @@ -22,7 +22,6 @@ SIM_OBJS = \ interp.o \ sim-resume.o -SIM_EXTRA_LIBS = -lm SIM_EXTRA_CFLAGS = -DDTB="\"$(dtbdir)/moxie-gdb.dtb\"" ## COMMON_POST_CONFIG_FRAG diff --git a/sim/or1k/Makefile.in b/sim/or1k/Makefile.in index e8456371419..20952cb2f14 100644 --- a/sim/or1k/Makefile.in +++ b/sim/or1k/Makefile.in @@ -49,8 +49,6 @@ SIM_EXTRA_DEPS = \ cpuall.h \ decode.h -SIM_EXTRA_LIBS = -lm - ## COMMON_POST_CONFIG_FRAG arch = or1k diff --git a/sim/sh/Makefile.in b/sim/sh/Makefile.in index fc794f30687..4bba7059ff8 100644 --- a/sim/sh/Makefile.in +++ b/sim/sh/Makefile.in @@ -21,7 +21,6 @@ SIM_OBJS = \ interp.o \ $(SIM_NEW_COMMON_OBJS) \ table.o -SIM_EXTRA_LIBS = -lm SIM_EXTRA_DEPS = table.c code.c ppi.c ## COMMON_POST_CONFIG_FRAG -- 2.30.2