[project @ 2001-03-26 16:59:20 by simonmar]
authorsimonmar <unknown>
Mon, 26 Mar 2001 16:59:20 +0000 (16:59 +0000)
committersimonmar <unknown>
Mon, 26 Mar 2001 16:59:20 +0000 (16:59 +0000)
small hacks for bootstrapping

mk/target.mk

index 81ac73b..6970096 100644 (file)
@@ -293,8 +293,14 @@ boot :: depend
 ifneq "$(HS_PROG)" ""
 all :: $(HS_PROG)
 
+ifneq "$(BootingFromHc)" "YES"
 $(HS_PROG) :: $(HS_OBJS)
-       $(HC) -o $@ $(HC_OPTS) $(LD_OPTS) $(HS_OBJS) $(LIBS)
+       $(HC) -o $@ $(HC_OPTS) $(LD_OPTS) $(HS_OBJS)
+else
+# see bootstrp.mk
+$(HS_PROG) :: $(HS_OBJS)
+       $(CC) -o $@ $(HC_BOOT_CC_OPTS) $(HC_BOOT_LD_OPTS) $(HS_OBJS) $(HC_BOOT_LIBS)
+endif
 endif
 
 # Object and interface files have suffixes tagged with their ways