public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] modula-2, driver: Do not add extra '-L' options that shadow $libdir.
@ 2023-01-07 10:53 Iain Sandoe
  0 siblings, 0 replies; only message in thread
From: Iain Sandoe @ 2023-01-07 10:53 UTC (permalink / raw)
  To: gcc-patches; +Cc: gaiusmod2

tested on x86_64-linux-gnu, i686, powerpc, x86_64 darwin,
note that this patch does expose PR108261 (but that is a separate issue).
OK for trunk?
thanks
Iain

--- 8< ---

The driver is adding one '-L' option for each path to libm2xxx.a which is
shadowing $libpath where the shared libraries are installed.  This prevents
the shared libraries from being found (there are also convenience libs
in $libdir, so the additional -L options are not needed).

gcc/m2/ChangeLog:

	* gm2spec.cc (add_default_combination): Do not add extra library
	paths for the libm2xxx.a libraries.
---
 gcc/m2/gm2spec.cc | 1 -
 1 file changed, 1 deletion(-)

diff --git a/gcc/m2/gm2spec.cc b/gcc/m2/gm2spec.cc
index dbfd1cacccc..f6d216269c1 100644
--- a/gcc/m2/gm2spec.cc
+++ b/gcc/m2/gm2spec.cc
@@ -289,7 +289,6 @@ add_default_combination (const char *libpath, const char *library)
 {
   if (library != NULL)
     {
-      append_option (OPT_L, build_archive_path (libpath, library), 1);
       append_option (OPT_l, safe_strdup (library), 1);
       return true;
     }
-- 
2.37.1 (Apple Git-137.1)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-07 10:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-07 10:53 [PATCH] modula-2, driver: Do not add extra '-L' options that shadow $libdir Iain Sandoe

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).