aboutsummaryrefslogtreecommitdiffstats
path: root/dist/gcc
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-02-20 18:38:33 +0100
committerTristan Gingold <tgingold@free.fr>2017-02-21 04:47:56 +0100
commit32ce80330998505a7dc7d5c61a4133ebb50ef939 (patch)
treeefdd7a4fc2a611076d0ece4f1637cde734193a63 /dist/gcc
parent8df42fb7ffcc43e280879c0ac1469c12a2ff2f5e (diff)
downloadghdl-32ce80330998505a7dc7d5c61a4133ebb50ef939.tar.gz
ghdl-32ce80330998505a7dc7d5c61a4133ebb50ef939.tar.bz2
ghdl-32ce80330998505a7dc7d5c61a4133ebb50ef939.zip
gcc/Make-lang.in: Avoid pwd
Diffstat (limited to 'dist/gcc')
-rw-r--r--dist/gcc/Make-lang.in4
1 files changed, 1 insertions, 3 deletions
diff --git a/dist/gcc/Make-lang.in b/dist/gcc/Make-lang.in
index 7e2b66bb5..690c834b7 100644
--- a/dist/gcc/Make-lang.in
+++ b/dist/gcc/Make-lang.in
@@ -57,14 +57,12 @@ GHDL1_OBJS = attribs.o vhdl/ortho-lang.o
# before.
vhdl_OBJS=vhdl/ortho-lang.o
-vhdl_srcdir := $(shell cd $(srcdir)/vhdl; pwd)
-
# The compiler proper.
# It is compiled into the vhdl/ subdirectory to avoid file name clashes but
# linked in in gcc directory to be able to access to gcc object files.
ghdl1$(exeext): force $(GHDL1_OBJS) $(BACKEND) $(LIBDEPS)
# Create object file in vhdl/subdir
- cd vhdl; $(GNATMAKE) -c -aI$(vhdl_srcdir) ortho_gcc-main \
+ $(GNATMAKE) -c -aI$(srcdir)/vhdl --subdirs=vhdl ortho_gcc-main \
-cargs $(CFLAGS) $(GHDL_ADAFLAGS)
$(GNATMAKE) -o $@ -aI$(srcdir)/vhdl -aOvhdl ortho_gcc-main \
-bargs -E -cargs $(CFLAGS) $(GHDL_ADAFLAGS) \