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.

110 lines
4.4 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 - 2003 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. diff -Nur gcc-3.2.3.orig/gcc/Makefile.in gcc-3.2.3/gcc/Makefile.in
  23. --- gcc-3.2.3.orig/gcc/Makefile.in Tue Jan 28 22:54:07 2003
  24. +++ gcc-3.2.3/gcc/Makefile.in Tue Jun 3 23:18:27 2003
  25. @@ -232,9 +232,9 @@
  26. FIBHEAP_H = $(srcdir)/../include/fibheap.h
  27. # Default native SYSTEM_HEADER_DIR, to be overridden by targets.
  28. -NATIVE_SYSTEM_HEADER_DIR = /usr/include
  29. +NATIVE_SYSTEM_HEADER_DIR = /usr/dietlibc/include
  30. # Default cross SYSTEM_HEADER_DIR, to be overridden by targets.
  31. -CROSS_SYSTEM_HEADER_DIR = $(build_tooldir)/sys-include
  32. +CROSS_SYSTEM_HEADER_DIR = /usr/dietlibc/include
  33. # autoconf sets SYSTEM_HEADER_DIR to one of the above.
  34. SYSTEM_HEADER_DIR = @SYSTEM_HEADER_DIR@
  35. diff -Nur gcc-3.2.3.orig/gcc/config/linux.h gcc-3.2.3/gcc/config/linux.h
  36. --- gcc-3.2.3.orig/gcc/config/linux.h Tue Dec 18 11:42:32 2001
  37. +++ gcc-3.2.3/gcc/config/linux.h Thu Jun 5 19:46:50 2003
  38. @@ -46,22 +46,10 @@
  39. object constructed before entering `main'. */
  40. #undef STARTFILE_SPEC
  41. -#ifdef USE_GNULIBC_1
  42. #define STARTFILE_SPEC \
  43. - "%{!shared: \
  44. - %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} \
  45. - %{!p:%{profile:gcrt1.o%s} \
  46. - %{!profile:crt1.o%s}}}} \
  47. - crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}"
  48. -#else
  49. -#define STARTFILE_SPEC \
  50. - "%{!shared: \
  51. - %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} \
  52. - %{!p:%{profile:gcrt1.o%s} \
  53. - %{!profile:crt1.o%s}}}} \
  54. - crti.o%s %{static:crtbeginT.o%s}\
  55. - %{!static:%{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}}"
  56. -#endif
  57. + "start.o%s"
  58. +/* "%{!shared:start.o%s}\
  59. + %{shared:shared_not_yet_set_in_STARTFILE_SPEC.o%s}"*/
  60. /* Provide a ENDFILE_SPEC appropriate for GNU/Linux. Here we tack on
  61. the GNU/Linux magical crtend.o file (see crtstuff.c) which
  62. @@ -71,8 +59,9 @@
  63. #undef ENDFILE_SPEC
  64. #define ENDFILE_SPEC \
  65. - "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
  66. -
  67. + ""
  68. +/*"%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
  69. +*/
  70. /* This is for -profile to use -lc_p instead of -lc. */
  71. #ifndef CC1_SPEC
  72. #define CC1_SPEC "%{profile:-p}"
  73. diff -Nur gcc-3.2.3.orig/gcc/cppdefault.h gcc-3.2.3/gcc/cppdefault.h
  74. --- gcc-3.2.3.orig/gcc/cppdefault.h Sun Oct 7 18:50:51 2001
  75. +++ gcc-3.2.3/gcc/cppdefault.h Tue Jun 3 23:19:22 2003
  76. @@ -27,7 +27,7 @@
  77. tradcpp. */
  78. #ifndef STANDARD_INCLUDE_DIR
  79. -#define STANDARD_INCLUDE_DIR "/usr/include"
  80. +#define STANDARD_INCLUDE_DIR "/usr/dietlibc/include"
  81. #endif
  82. #ifndef STANDARD_INCLUDE_COMPONENT
  83. diff -Nur gcc-3.2.3.orig/gcc/gcc.c gcc-3.2.3/gcc/gcc.c
  84. --- gcc-3.2.3.orig/gcc/gcc.c Wed Jun 4 11:55:54 2003
  85. +++ gcc-3.2.3/gcc/gcc.c Thu Jun 5 20:04:26 2003
  86. @@ -1340,6 +1340,7 @@
  87. static const char *const standard_startfile_prefix = STANDARD_STARTFILE_PREFIX;
  88. static const char *const standard_startfile_prefix_1 = "/lib/";
  89. static const char *const standard_startfile_prefix_2 = "/usr/lib/";
  90. +static const char *const standard_startfile_prefix_3 = "/usr/dietlibc/lib-i386/";
  91. static const char *const tooldir_base_prefix = TOOLDIR_BASE_PREFIX;
  92. static const char *tooldir_prefix;
  93. @@ -5976,6 +5977,8 @@
  94. add_prefix (&startfile_prefixes, standard_startfile_prefix_1,
  95. "BINUTILS", PREFIX_PRIORITY_LAST, 0, NULL, 1);
  96. add_prefix (&startfile_prefixes, standard_startfile_prefix_2,
  97. + "BINUTILS", PREFIX_PRIORITY_LAST, 0, NULL, 1);
  98. + add_prefix (&startfile_prefixes, standard_startfile_prefix_3,
  99. "BINUTILS", PREFIX_PRIORITY_LAST, 0, NULL, 1);
  100. #if 0 /* Can cause surprises, and one can use -B./ instead. */
  101. add_prefix (&startfile_prefixes, "./", NULL,