From: Mike Frysinger <vapier@gentoo.org>
To: gdb-patches@sourceware.org
Subject: [PATCH 5/5] sim: drop -lm from SIM_EXTRA_LIBS
Date: Thu, 3 Nov 2022 17:04:03 +0700 [thread overview]
Message-ID: <20221103100403.26278-5-vapier@gentoo.org> (raw)
In-Reply-To: <20221103100403.26278-1-vapier@gentoo.org>
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 95de0f96cc6e..72a37053b049 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 d7d50d54289f..f1f58ab27848 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 f4f30c48bcb5..62f7b71ded1a 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 de05be97262d..1f20adf8c347 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 1c01ec60516e..850b8c81ec05 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 f288b02c8e8b..54dc37135b05 100644
--- a/sim/or1k/Makefile.in
+++ b/sim/or1k/Makefile.in
@@ -51,8 +51,6 @@ SIM_EXTRA_DEPS = \
SIM_EXTRA_CFLAGS =
-SIM_EXTRA_LIBS = -lm
-
## COMMON_POST_CONFIG_FRAG
arch = or1k
diff --git a/sim/sh/Makefile.in b/sim/sh/Makefile.in
index fc794f30687f..4bba7059ff81 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.38.1
prev parent reply other threads:[~2022-11-03 11:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-03 10:03 [PATCH 1/5] sim: build: switch to libtool for linking Mike Frysinger
2022-11-03 10:04 ` [PATCH 2/5] sim: build: switch to bfd & opcodes libtool linker scripts Mike Frysinger
2022-11-03 10:04 ` [PATCH 3/5] sim: build: drop duplicate $(LIBS) usage Mike Frysinger
2022-11-03 10:04 ` [PATCH 4/5] sim: build: change AC_CHECK_LIB to AC_SEARCH_LIBS Mike Frysinger
2022-11-03 10:04 ` Mike Frysinger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221103100403.26278-5-vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).