* Makefile.in (INTERNAL_LDFLAGS): New macro. The new part is
authorJim Kingdon <jkingdon@engr.sgi.com>
Wed, 20 Oct 1993 17:15:45 +0000 (17:15 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Wed, 20 Oct 1993 17:15:45 +0000 (17:15 +0000)
that we use CFLAGS and PROFILE_CFLAGS to link.
(gdb, rapp, kdb): Use INTERNAL_LDFLAGS instead of
LDFLAGS and/or GLOBAL_CFLAGS.

gdb/ChangeLog
gdb/Makefile.in

index 0ef1cc21808b68dc510fe6d4c285e57775784f7b..4681d087fd023e282d8edca1445a2e0ecbb2ebbb 100644 (file)
@@ -1,3 +1,10 @@
+Wed Oct 20 11:35:43 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
+
+       * Makefile.in (INTERNAL_LDFLAGS): New macro.  The new part is
+       that we use CFLAGS and PROFILE_CFLAGS to link.
+       (gdb, rapp, kdb): Use INTERNAL_LDFLAGS instead of
+       LDFLAGS and/or GLOBAL_CFLAGS.
+
 Wed Oct 20 09:29:55 1993  Stu Grossman  (grossman at cygnus.com)
 
        * Makefile.in:  Add $(srcdir) to all refs to 29k-share
index 8ad387bcb0eb1b1ce9f8ace3d667e4edc3c24017..21094a847c5bc3908a0275da6b6d5be48f2f6b40 100644 (file)
@@ -154,6 +154,14 @@ INTERNAL_CFLAGS = $(CFLAGS) $(GLOBAL_CFLAGS) $(PROFILE_CFLAGS) \
        $(GDB_CFLAGS) $(OPCODES_CFLAGS) $(READLINE_CFLAGS) \
        $(BFD_CFLAGS) $(MMALLOC_CFLAGS) $(INCLUDE_CFLAGS)
 
+# LDFLAGS is specifically reserved for setting from the command line
+# when running make.
+
+# Profiling options need to go here to work.
+# I think it's perfectly reasonable for a user to set -pg in CFLAGS
+# and have it work; that's why CFLAGS is here.
+INTERNAL_LDFLAGS = $(CFLAGS) $(GLOBAL_CFLAGS) $(PROFILE_CFLAGS) $(LDFLAGS)
+
 # We are using our own version of REGEX now to be consistent across
 # machines.
 REGEX = regex.o
@@ -484,7 +492,7 @@ init.c: munch $(OBS) $(TSOBS)
 # Removing the old gdb first works better if it is running, at least on SunOS.
 gdb: $(OBS) $(TSOBS) $(ADD_DEPS) $(CDEPS) init.o
        rm -f gdb
-       $(CC-LD) $(GLOBAL_CFLAGS) $(LDFLAGS) -o gdb \
+       $(CC-LD) $(INTERNAL_LDFLAGS) -o gdb \
          init.o $(OBS) $(TSOBS) $(ADD_FILES) $(CLIBS) $(LOADLIBES)
 
 saber_gdb: $(SFILES) $(DEPFILES) copying.c version.c
@@ -520,7 +528,7 @@ gdb1: gdb
 rapp: $(RAPP_OBS)
        rm -f rapp_init.c
        $(srcdir)/munch $(MUNCH_DEFINE) $(RAPP_OBS) > rapp_init.c
-       $(CC-LD) $(LDFLAGS) -o $@ rapp_init.c $(RAPP_OBS)
+       $(CC-LD) $(INTERNAL_LDFLAGS) -o $@ rapp_init.c $(RAPP_OBS)
 
 config.status:
        @echo "You must configure gdb.  Look at the README file for details."
@@ -559,7 +567,7 @@ xm-vaxbsd.h: xm-vax.h
 kdb:   $(NTSSTART) $(OBS) $(NTSOBS) $(ADD_DEPS) $(CDEPS)
        rm -f init.c
        $(srcdir)/munch $(MUNCH_DEFINE) $(OBS) $(NTSOBS) > init.c
-       $(CC) $(LDFLAGS) -c init.c $(CLIBS) 
+       $(CC) $(INTERNAL_LDFLAGS) -c init.c $(CLIBS) 
        ld -o kdb $(NTSSTART) $(OBS) $(NTSOBS) init.o $(ADD_FILES) \
          -lc $(CLIBS)
 
This page took 0.029402 seconds and 4 git commands to generate.