diff options
author | Kai Tietz <ktietz@redhat.com> | 2013-02-13 11:19:26 +0100 |
---|---|---|
committer | Kai Tietz <ktietz@gcc.gnu.org> | 2013-02-13 11:19:26 +0100 |
commit | b97ffdc98307b01489022bd43a71fe40859828be (patch) | |
tree | 354d33e935a7422ba5f0453e70a2bc76abf7a1c1 /libada/Makefile.in | |
parent | c345d4f126db66abd5e9bd7518d5b1030052a193 (diff) | |
download | gcc-b97ffdc98307b01489022bd43a71fe40859828be.zip gcc-b97ffdc98307b01489022bd43a71fe40859828be.tar.gz gcc-b97ffdc98307b01489022bd43a71fe40859828be.tar.bz2 |
re PR target/52122 (incorrect ln -s replacement for mingw like targets in configure files)
PR target/52122
* Makefile.in (LN_S_RECUSIVE): New.
(adainclude, adalib): Use LN_S_RECURSIVE for copy.
From-SVN: r196002
Diffstat (limited to 'libada/Makefile.in')
-rw-r--r-- | libada/Makefile.in | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/libada/Makefile.in b/libada/Makefile.in index 3bac827..983a542 100644 --- a/libada/Makefile.in +++ b/libada/Makefile.in @@ -43,6 +43,12 @@ enable_shared = @enable_shared@ LN_S=@LN_S@ AWK=@AWK@ +ifeq (cp -p,$(LN_S)) +LN_S_RECURSIVE = cp -pR +else +LN_S_RECURSIVE = $(LN_S) +endif + # Variables for the user (or the top level) to override. objext=.o THREAD_KIND=native @@ -100,8 +106,8 @@ gnatlib-plain: osconstool $(GCC_DIR)/ada/Makefile && touch stamp-libada -rm -rf adainclude -rm -rf adalib - $(LN_S) $(ADA_RTS_DIR) adainclude - $(LN_S) $(ADA_RTS_DIR) adalib + $(LN_S_RECURSIVE) $(ADA_RTS_DIR) adainclude + $(LN_S_RECURSIVE) $(ADA_RTS_DIR) adalib gnatlib-sjlj gnatlib-zcx gnatlib-shared: osconstool $(GCC_DIR)/ada/Makefile test -f stamp-libada || \ @@ -109,8 +115,8 @@ gnatlib-sjlj gnatlib-zcx gnatlib-shared: osconstool $(GCC_DIR)/ada/Makefile && touch stamp-libada -rm -rf adainclude -rm -rf adalib - $(LN_S) $(ADA_RTS_DIR) adainclude - $(LN_S) $(ADA_RTS_DIR) adalib + $(LN_S_RECURSIVE) $(ADA_RTS_DIR) adainclude + $(LN_S_RECURSIVE) $(ADA_RTS_DIR) adalib osconstool: $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) ./bldtools/oscons/xoscons |