]> TLD Linux GIT Repositories - packages/gcc.git/blob - gcc-ada-link.patch
240790ad474bb6000d076441070696e12534c37a
[packages/gcc.git] / gcc-ada-link.patch
1 --- a/gcc/ada/link.c    2004-09-13 12:18:40.000000000 +0200
2 +++ b/gcc/ada/link.c    2004-09-26 12:24:29.079704096 +0200
3 @@ -157,10 +157,10 @@
4  
5  #elif defined (linux) || defined(__GLIBC__)
6  const char *__gnat_object_file_option = "-Wl,@";
7 -const char *__gnat_run_path_option = "-Wl,-rpath,";
8 +const char *__gnat_run_path_option = "";
9  char __gnat_shared_libgnat_default = STATIC;
10 -char __gnat_shared_libgcc_default = STATIC;
11 -int __gnat_link_max = 8192;
12 +char __gnat_shared_libgcc_default = SHARED;
13 +int __gnat_link_max = 131072;
14  unsigned char __gnat_objlist_file_supported = 1;
15  const char *__gnat_object_library_extension = ".a";
16  unsigned char __gnat_separate_run_path_options = 0;
17 --- a/gcc/ada/gcc-interface/Makefile.in 2005-05-26 10:48:40.000000000 +0000
18 +++ b/gcc/ada/gcc-interface/Makefile.in 2005-05-26 10:59:25.000000000 +0000
19 @@ -126,7 +126,7 @@
20  objext = .o
21  exeext =
22  arext  = .a
23 -soext  = .so
24 +soext  = .so.1
25  shext  =
26  hyphen = -
27  
28 @@ -210,7 +210,7 @@
29  # Link flags used to build gnat tools.  By default we prefer to statically
30  # link with libgcc to avoid a dependency on shared libgcc (which is tricky
31  # to deal with as it may conflict with the libgcc provided by the system).
32 -GCC_LINK_FLAGS=-static-libstdc++ -static-libgcc
33 +GCC_LINK_FLAGS=-static-libstdc++
34  
35  # End of variables for you to override.
36  
37 @@ -2489,7 +2489,8 @@
38                 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
39                 $(GNATRTL_TASKING_OBJS) \
40                 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
41 -               $(THREADSLIB)
42 +               $(THREADSLIB) \
43 +               ./libgnat-$(LIBRARY_VERSION)$(soext)
44         cd $(RTSDIR); $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
45                 libgnat$(soext)
46         cd $(RTSDIR); $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
47 --- a/gcc/ada/gcc-interface/Makefile.in~        2014-07-16 18:43:51.000000000 +0200
48 +++ b/gcc/ada/gcc-interface/Makefile.in 2014-07-16 18:46:09.555516586 +0200
49 @@ -2811,14 +2811,14 @@
50               gnatlib
51         $(RM) $(RTSDIR)/libgna*$(soext)
52         cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
53 -                | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared $(GNATLIBCFLAGS) \
54 +                | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared -shared-libgcc $(GNATLIBCFLAGS) \
55                 $(PICFLAG_FOR_TARGET) \
56                 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
57                 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
58                 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
59                 $(MISCLIB) -lm
60         cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
61 -                | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared $(GNATLIBCFLAGS) \
62 +                | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared -shared-libgcc $(GNATLIBCFLAGS) \
63                 $(PICFLAG_FOR_TARGET) \
64                 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
65                 $(GNATRTL_TASKING_OBJS) \