]> git.pld-linux.org Git - packages/gcc4.git/blob - gcc4-ada-link.patch
- added from gcc/
[packages/gcc4.git] / gcc4-ada-link.patch
1 --- gcc-4.0-20040919/gcc/ada/link.c.orig        2004-09-13 12:18:40.000000000 +0200
2 +++ gcc-4.0-20040919/gcc/ada/link.c     2004-09-26 12:24:29.079704096 +0200
3 @@ -164,9 +164,9 @@
4  
5  #elif defined (linux)
6  const char *__gnat_object_file_option = "";
7 -const char *__gnat_run_path_option = "-Wl,-rpath,";
8 -char __gnat_shared_libgnat_default = STATIC;
9 -int __gnat_link_max = 8192;
10 +const char *__gnat_run_path_option = "";
11 +char __gnat_shared_libgnat_default = SHARED;
12 +int __gnat_link_max = 131072;
13  unsigned char __gnat_objlist_file_supported = 1;
14  unsigned char __gnat_using_gnu_linker = 1;
15  const char *__gnat_object_library_extension = ".a";
16 --- gcc-4.0-20040919/gcc/ada/Make-lang.in.orig  2004-09-01 12:46:47.000000000 +0200
17 +++ gcc-4.0-20040919/gcc/ada/Make-lang.in       2004-09-26 12:21:15.135188144 +0200
18 @@ -378,7 +378,7 @@
19  ada/doctools/xgnatugn$(build_exeext): ada/xgnatugn.adb
20         -$(MKDIR) ada/doctools
21         $(CP) $^ ada/doctools
22 -       cd ada/doctools && gnatmake -q xgnatugn
23 +       cd ada/doctools && gnatmake -q xgnatugn -a0../rts
24  
25  # Note that gnat_ugn_unw.texi does not depend on xgnatugn 
26  # being built so we can distribute a pregenerated gnat_ugn_unw.info
27 --- gcc-4.1-20050522/gcc/ada/Makefile.in.orig   2005-05-26 10:48:40.000000000 +0000
28 +++ gcc-4.1-20050522/gcc/ada/Makefile.in        2005-05-26 10:59:25.000000000 +0000
29 @@ -139,7 +139,7 @@
30  objext = .o
31  exeext =
32  arext  = .a
33 -soext  = .so
34 +soext  = .so.1
35  shext  =
36  hyphen = -
37  
38 @@ -1364,7 +1414,7 @@
39   s-[a-o]*.adb s-[p-z]*.adb s-[a-o]*.ads s-[p-z]*.ads  
40  
41  LIBGNAT=../rts/libgnat.a 
42 -GCC_LINK=$(CC) -static-libgcc $(ADA_INCLUDES)
43 +GCC_LINK=$(CC) $(ADA_INCLUDES)
44  
45  # when compiling the tools, the runtime has to be first on the path so that
46  # it hides the runtime files lying with the rest of the sources
47 @@ -1644,7 +1694,8 @@
48                 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
49                 $(GNATRTL_TASKING_OBJS) \
50                 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
51 -               $(THREADSLIB)
52 +               $(THREADSLIB) \
53 +               ./libgnat-$(LIBRARY_VERSION)$(soext)
54         cd rts; $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
55                 libgnat$(soext)
56         cd rts; $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
57 @@ -1691,7 +1742,7 @@
58              THREAD_KIND="$(THREAD_KIND)" \
59               gnatlib
60         $(RM) rts/libgna*$(soext)
61 -       cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
62 +       cd rts; ../../xgcc -B../../ -shared -shared-libgcc $(TARGET_LIBGCC2_CFLAGS) \
63                 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
64                 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
65                 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) $(MISCLIB)
This page took 0.064827 seconds and 3 git commands to generate.