* ldmain.c (main): Call bfd_set_default_target.
authorIan Lance Taylor <ian@airs.com>
Fri, 28 Feb 1997 22:43:35 +0000 (22:43 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 28 Feb 1997 22:43:35 +0000 (22:43 +0000)
* Makefile.in (ldmain.o): Define TARGET when compiling.

ld/ChangeLog
ld/Makefile.in

index 24201ff227f81e677404ec197d426529fa4b0635..90fd0ab1b70ab5f7641b2772f928c09e7b7a9923 100644 (file)
@@ -1,3 +1,8 @@
+Fri Feb 28 17:42:27 1997  Ian Lance Taylor  <ian@cygnus.com>
+
+       * ldmain.c (main): Call bfd_set_default_target.
+       * Makefile.in (ldmain.o): Define TARGET when compiling.
+
 Thu Feb 27 11:41:03 1997  Ian Lance Taylor  <ian@cygnus.com>
 
        * ldmain.c (main): Don't initialize link_info.lprefix or
index 0f84f70e850247ce8a07275ed0ec61bbeb87ae52..5ee80a9692eb468c3c28462ef94599550ffdd5df 100644 (file)
@@ -321,7 +321,7 @@ ldgram.c: ldgram.y
 ldgram.h: ldgram.c
 
 ldmain.o: ldmain.c config.status
-       $(CC) -c -DDEFAULT_EMULATION='"$(EMUL)"' -DSCRIPTDIR='"$(scriptdir)"' $(ALL_CFLAGS) $<
+       $(CC) -c -DDEFAULT_EMULATION='"$(EMUL)"' -DSCRIPTDIR='"$(scriptdir)"' -DTARGET='"@target@"' $(ALL_CFLAGS) $<
 
 ldemul-list.h: Makefile
        (echo "/* This file is automatically generated.  DO NOT EDIT! */";\