aboutsummaryrefslogtreecommitdiffstats
path: root/lang/gcc27/files/patch-Makefile.in
blob: 2b2a1260148dadd8c0073c2d46617cea5bd42220 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
--- Makefile.in.orig    Fri Aug  8 08:58:17 1997
+++ Makefile.in Wed Mar 22 10:36:29 2000
@@ -196,6 +196,10 @@
 # Directory in which the compiler finds executables, libraries, etc.
 libsubdir = $(libdir)/gcc-lib/$(target)/$(version)
 # Directory in which the compiler finds g++ includes.
+#
+#  XXX: Note that the below is blown away by ``configure''.
+#       Great GNU idiots, just great documentaton.
+#
 gxx_include_dir= $(libdir)/g++-include
 # Directory to search for site-specific includes.
 includedir = $(local_prefix)/include
@@ -245,7 +249,7 @@
 # -g1 causes output of debug info only for file-scope entities.
 # we use this here because that should be enough, and also
 # so that -g1 will be tested.
-LIBGCC2_CFLAGS = -O2 $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) $(TARGET_LIBGCC2_CFLAGS) -g1
+LIBGCC2_CFLAGS = -O2 $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) $(TARGET_LIBGCC2_CFLAGS) -g1 -g0
 
 # Additional options to use when compiling libgcc2.a.
 # Some targets override this to -Iinclude
@@ -746,6 +750,7 @@
 libgcc1.null: $(GCC_PASSES)
    echo "__foo () {}" > dummy.c
    $(GCC_FOR_TARGET) $(GCC_CFLAGS) -c dummy.c
+   ld -r -x dummy$(objext); mv a.out dummy$(objext)
    $(OLDAR) $(OLDAR_FLAGS) libgcc1.null dummy$(objext)
    rm -f dummy$(objext) dummy.c
 
@@ -777,6 +782,7 @@
      $(OLDCC) $(CCLIBFLAGS) $(INCLUDES) -c -DL$${name} $(srcdir)/libgcc1.c; \
      if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
      mv libgcc1$(objext) $${name}$(objext); \
+     ld -r -x $${name}$(objext); mv a.out $${name}$(objext); \
      $(OLDAR) $(OLDAR_FLAGS) tmplibgcc1.a $${name}$(objext); \
      rm -f $${name}$(objext); \
    done
@@ -796,6 +802,7 @@
        else true; fi; \
        $(OLDCC) $(CCLIBFLAGS) $(INCLUDES) -c $${file}; \
        if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
+       ld -r -x $${name}$(objext); mv a.out $${name}$(objext); \
        $(OLDAR) $(OLDAR_FLAGS) tmplibgcc1.a $${name}$(objext); \
        if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
        rm -f $${name}.s $${name}$(objext); \
@@ -825,6 +832,7 @@
      $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) -c -DL$${name} libgcc1.S; \
      if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
      mv libgcc1$(objext) $${name}$(objext); \
+     ld -r -x $${name}$(objext); mv a.out $${name}$(objext); \
      $(AR) $(AR_FLAGS) tmplibgcc1.a $${name}$(objext); \
      rm -f $${name}$(objext); \
    done
@@ -875,6 +883,7 @@
      $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) -c -DL$${name} \
          $(srcdir)/libgcc2.c -o $${name}$(objext); \
      if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
+     ld -r -x $${name}$(objext); mv a.out $${name}$(objext); \
      $(AR) $(AR_FLAGS) tmplibgcc2.a $${name}$(objext); \
      rm -f $${name}$(objext); \
    done
@@ -895,6 +904,7 @@
        else true; fi; \
        $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) -c $${file}; \
        if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
+       ld -r -x $${oname}$(objext); mv a.out $${oname}$(objext); \
        $(AR) $(AR_FLAGS) tmplibgcc2.a $${oname}$(objext); \
        rm -f $${name}.s $${oname}$(objext); \
      else true; \