public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/segher/heads/gm2)] gm2: Replace ../$(subdir) and ../../$(subdir) by just $(subdir)
@ 2021-06-19 13:48 Segher Boessenkool
  0 siblings, 0 replies; 2+ messages in thread
From: Segher Boessenkool @ 2021-06-19 13:48 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:28cec96b06d0f35c387cfa4c73e5ea0c9b9a7e47

commit 28cec96b06d0f35c387cfa4c73e5ea0c9b9a7e47
Author: Segher Boessenkool <segher@kernel.crashing.org>
Date:   Fri Jun 18 20:53:22 2021 +0000

    gm2: Replace ../$(subdir) and ../../$(subdir) by just $(subdir)
    
    I have no idea if this is correct, but at least it builds better.

Diff:
---
 gcc/m2/Make-lang.in | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gcc/m2/Make-lang.in b/gcc/m2/Make-lang.in
index 989bd3f8461..1a5efa9a4c7 100644
--- a/gcc/m2/Make-lang.in
+++ b/gcc/m2/Make-lang.in
@@ -1180,8 +1180,8 @@ m2/gm2-libs-iso/%.o: $(srcdir)/m2/gm2-libs-iso/%.mod
 m2/gm2-libs/gm2-libs-host.h:
 	echo "Configuring to build libraries using native compiler" ; \
         cd m2/gm2-libs ; \
-        $(SHELL) -c '../../$(srcdir)/m2/gm2-libs/config-host \
-               --srcdir=../../$(srcdir)/m2/gm2-libs \
+        $(SHELL) -c '$(srcdir)/m2/gm2-libs/config-host \
+               --srcdir=$(srcdir)/m2/gm2-libs \
                --target=$(target) \
                --program-suffix=$(exeext)'
 
@@ -1195,9 +1195,9 @@ m2/gm2config.h:
             export AR ; \
             RANLIB=`echo $(RANLIB_FOR_TARGET) | sed -e "s/^ //"` ; \
             export RANLIB ; \
-            $(SHELL) -c '../$(srcdir)/m2/configure --srcdir=../$(srcdir)/m2 --target=$(target) --program-suffix=$(exeext) --includedir=$(SYSTEM_HEADER_DIR) --libdir=$(libdir) --libexecdir=$(libexecdir)' ; \
+            $(SHELL) -c '$(srcdir)/m2/configure --srcdir=$(srcdir)/m2 --target=$(target) --program-suffix=$(exeext) --includedir=$(SYSTEM_HEADER_DIR) --libdir=$(libdir) --libexecdir=$(libexecdir)' ; \
         else \
-            $(SHELL) -c '../$(srcdir)/m2/configure --srcdir=../$(srcdir)/m2 --target=$(target) --program-suffix=$(exeext)' ; \
+            $(SHELL) -c '$(srcdir)/m2/configure --srcdir=$(srcdir)/m2 --target=$(target) --program-suffix=$(exeext)' ; \
         fi
 
 $(objdir)/m2/gm2-libs-min/SYSTEM.def: $(GM2_PROG_DEP)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gcc(refs/users/segher/heads/gm2)] gm2: Replace ../$(subdir) and ../../$(subdir) by just $(subdir)
@ 2021-06-19 13:32 Segher Boessenkool
  0 siblings, 0 replies; 2+ messages in thread
From: Segher Boessenkool @ 2021-06-19 13:32 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:50d88610f5c65cf6deecb4adb8d6f3e94cffaead

commit 50d88610f5c65cf6deecb4adb8d6f3e94cffaead
Author: Segher Boessenkool <segher@kernel.crashing.org>
Date:   Fri Jun 18 20:53:22 2021 +0000

    gm2: Replace ../$(subdir) and ../../$(subdir) by just $(subdir)
    
    I have no idea if this is correct, but at least it builds better.

Diff:
---
 gcc/m2/Make-lang.in | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gcc/m2/Make-lang.in b/gcc/m2/Make-lang.in
index 989bd3f8461..1a5efa9a4c7 100644
--- a/gcc/m2/Make-lang.in
+++ b/gcc/m2/Make-lang.in
@@ -1180,8 +1180,8 @@ m2/gm2-libs-iso/%.o: $(srcdir)/m2/gm2-libs-iso/%.mod
 m2/gm2-libs/gm2-libs-host.h:
 	echo "Configuring to build libraries using native compiler" ; \
         cd m2/gm2-libs ; \
-        $(SHELL) -c '../../$(srcdir)/m2/gm2-libs/config-host \
-               --srcdir=../../$(srcdir)/m2/gm2-libs \
+        $(SHELL) -c '$(srcdir)/m2/gm2-libs/config-host \
+               --srcdir=$(srcdir)/m2/gm2-libs \
                --target=$(target) \
                --program-suffix=$(exeext)'
 
@@ -1195,9 +1195,9 @@ m2/gm2config.h:
             export AR ; \
             RANLIB=`echo $(RANLIB_FOR_TARGET) | sed -e "s/^ //"` ; \
             export RANLIB ; \
-            $(SHELL) -c '../$(srcdir)/m2/configure --srcdir=../$(srcdir)/m2 --target=$(target) --program-suffix=$(exeext) --includedir=$(SYSTEM_HEADER_DIR) --libdir=$(libdir) --libexecdir=$(libexecdir)' ; \
+            $(SHELL) -c '$(srcdir)/m2/configure --srcdir=$(srcdir)/m2 --target=$(target) --program-suffix=$(exeext) --includedir=$(SYSTEM_HEADER_DIR) --libdir=$(libdir) --libexecdir=$(libexecdir)' ; \
         else \
-            $(SHELL) -c '../$(srcdir)/m2/configure --srcdir=../$(srcdir)/m2 --target=$(target) --program-suffix=$(exeext)' ; \
+            $(SHELL) -c '$(srcdir)/m2/configure --srcdir=$(srcdir)/m2 --target=$(target) --program-suffix=$(exeext)' ; \
         fi
 
 $(objdir)/m2/gm2-libs-min/SYSTEM.def: $(GM2_PROG_DEP)


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-19 13:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-19 13:48 [gcc(refs/users/segher/heads/gm2)] gm2: Replace ../$(subdir) and ../../$(subdir) by just $(subdir) Segher Boessenkool
  -- strict thread matches above, loose matches on Subject: below --
2021-06-19 13:32 Segher Boessenkool

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