mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

107 lines
4.3 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/dietlibc/pkg_patch/pkg_gcc3.chroot.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. diff -Nur gcc-3.2.3.orig/gcc/Makefile.in gcc-3.2.3/gcc/Makefile.in
  20. --- gcc-3.2.3.orig/gcc/Makefile.in Tue Jan 28 22:54:07 2003
  21. +++ gcc-3.2.3/gcc/Makefile.in Tue Jun 3 23:18:27 2003
  22. @@ -232,9 +232,9 @@
  23. FIBHEAP_H = $(srcdir)/../include/fibheap.h
  24. # Default native SYSTEM_HEADER_DIR, to be overridden by targets.
  25. -NATIVE_SYSTEM_HEADER_DIR = /usr/include
  26. +NATIVE_SYSTEM_HEADER_DIR = /usr/dietlibc/include
  27. # Default cross SYSTEM_HEADER_DIR, to be overridden by targets.
  28. -CROSS_SYSTEM_HEADER_DIR = $(build_tooldir)/sys-include
  29. +CROSS_SYSTEM_HEADER_DIR = /usr/dietlibc/include
  30. # autoconf sets SYSTEM_HEADER_DIR to one of the above.
  31. SYSTEM_HEADER_DIR = @SYSTEM_HEADER_DIR@
  32. diff -Nur gcc-3.2.3.orig/gcc/config/linux.h gcc-3.2.3/gcc/config/linux.h
  33. --- gcc-3.2.3.orig/gcc/config/linux.h Tue Dec 18 11:42:32 2001
  34. +++ gcc-3.2.3/gcc/config/linux.h Thu Jun 5 19:46:50 2003
  35. @@ -46,22 +46,10 @@
  36. object constructed before entering `main'. */
  37. #undef STARTFILE_SPEC
  38. -#ifdef USE_GNULIBC_1
  39. #define STARTFILE_SPEC \
  40. - "%{!shared: \
  41. - %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} \
  42. - %{!p:%{profile:gcrt1.o%s} \
  43. - %{!profile:crt1.o%s}}}} \
  44. - crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}"
  45. -#else
  46. -#define STARTFILE_SPEC \
  47. - "%{!shared: \
  48. - %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} \
  49. - %{!p:%{profile:gcrt1.o%s} \
  50. - %{!profile:crt1.o%s}}}} \
  51. - crti.o%s %{static:crtbeginT.o%s}\
  52. - %{!static:%{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}}"
  53. -#endif
  54. + "start.o%s"
  55. +/* "%{!shared:start.o%s}\
  56. + %{shared:shared_not_yet_set_in_STARTFILE_SPEC.o%s}"*/
  57. /* Provide a ENDFILE_SPEC appropriate for GNU/Linux. Here we tack on
  58. the GNU/Linux magical crtend.o file (see crtstuff.c) which
  59. @@ -71,8 +59,9 @@
  60. #undef ENDFILE_SPEC
  61. #define ENDFILE_SPEC \
  62. - "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
  63. -
  64. + ""
  65. +/*"%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
  66. +*/
  67. /* This is for -profile to use -lc_p instead of -lc. */
  68. #ifndef CC1_SPEC
  69. #define CC1_SPEC "%{profile:-p}"
  70. diff -Nur gcc-3.2.3.orig/gcc/cppdefault.h gcc-3.2.3/gcc/cppdefault.h
  71. --- gcc-3.2.3.orig/gcc/cppdefault.h Sun Oct 7 18:50:51 2001
  72. +++ gcc-3.2.3/gcc/cppdefault.h Tue Jun 3 23:19:22 2003
  73. @@ -27,7 +27,7 @@
  74. tradcpp. */
  75. #ifndef STANDARD_INCLUDE_DIR
  76. -#define STANDARD_INCLUDE_DIR "/usr/include"
  77. +#define STANDARD_INCLUDE_DIR "/usr/dietlibc/include"
  78. #endif
  79. #ifndef STANDARD_INCLUDE_COMPONENT
  80. diff -Nur gcc-3.2.3.orig/gcc/gcc.c gcc-3.2.3/gcc/gcc.c
  81. --- gcc-3.2.3.orig/gcc/gcc.c Wed Jun 4 11:55:54 2003
  82. +++ gcc-3.2.3/gcc/gcc.c Thu Jun 5 20:04:26 2003
  83. @@ -1340,6 +1340,7 @@
  84. static const char *const standard_startfile_prefix = STANDARD_STARTFILE_PREFIX;
  85. static const char *const standard_startfile_prefix_1 = "/lib/";
  86. static const char *const standard_startfile_prefix_2 = "/usr/lib/";
  87. +static const char *const standard_startfile_prefix_3 = "/usr/dietlibc/lib-i386/";
  88. static const char *const tooldir_base_prefix = TOOLDIR_BASE_PREFIX;
  89. static const char *tooldir_prefix;
  90. @@ -5976,6 +5977,8 @@
  91. add_prefix (&startfile_prefixes, standard_startfile_prefix_1,
  92. "BINUTILS", PREFIX_PRIORITY_LAST, 0, NULL, 1);
  93. add_prefix (&startfile_prefixes, standard_startfile_prefix_2,
  94. + "BINUTILS", PREFIX_PRIORITY_LAST, 0, NULL, 1);
  95. + add_prefix (&startfile_prefixes, standard_startfile_prefix_3,
  96. "BINUTILS", PREFIX_PRIORITY_LAST, 0, NULL, 1);
  97. #if 0 /* Can cause surprises, and one can use -B./ instead. */
  98. add_prefix (&startfile_prefixes, "./", NULL,