]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/52122 (incorrect ln -s replacement for mingw like targets in configure...
authorKai Tietz <ktietz@redhat.com>
Wed, 13 Feb 2013 10:21:25 +0000 (11:21 +0100)
committerKai Tietz <ktietz@gcc.gnu.org>
Wed, 13 Feb 2013 10:21:25 +0000 (11:21 +0100)
PR target/52122
* Makefile.in (LN_S_RECUSIVE): New.
(adainclude, adalib): Use LN_S_RECURSIVE for copy.

From-SVN: r196004

libada/ChangeLog
libada/Makefile.in

index 3ac329b20b6a4367861227d589b0be650dd56f0f..71f548a8f7d5e425b6686ba466f7cac60dc73b39 100644 (file)
@@ -1,3 +1,9 @@
+2013-02-13  Kai Tietz  <ktietz@redhat.com>
+
+       PR target/52122
+       * Makefile.in (LN_S_RECUSIVE): New.
+       (adainclude, adalib): Use LN_S_RECURSIVE for copy.
+
 2012-03-01  Release Manager
 
        * GCC 4.6.3 released.
index 2fa1c6a8c8f354f1d25ae7ef3de1346e940867c9..dbead70055563c97dab7b26f00eeecb57f7fcd7a 100644 (file)
@@ -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
 GNATLIBFLAGS= -W -Wall -gnatpg
@@ -106,8 +112,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 || \
@@ -115,8 +121,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