Cross-compile build fixes

recover was not being built correctly under cross compilation
This commit is contained in:
nhmall
2024-12-01 13:24:30 -05:00
parent dda5d03d91
commit 8b08244c9b
4 changed files with 53 additions and 17 deletions

View File

@@ -200,7 +200,7 @@ HACKLIBOBJ = $(OBJDIR)/hacklib.o panic.o
MAKEOBJS = makedefs.o $(OMONOBJ) $(ODATE) $(OALLOC)
# object files for recovery utility
RECOVOBJS = $(TARGETPFX)recover.o
RECOVOBJS = recover.o
# object files for the data librarian
DLBOBJS = dlb_main.o $(OBJDIR)/dlb.o $(OALLOC)
@@ -277,12 +277,12 @@ lintdgn:
# dependencies for recover
#
$(TARGETPFX)recover: $(RECOVOBJS) $(TARGETPFX)$(HACKLIB)
$(TARGET_CLINK) $(TARGET_LFLAGS) -o recover \
$(RECOVOBJS) $(TARGETPFX)$(HACKLIB) $(LIBS)
recover: $(RECOVOBJS) $(HACKLIB)
$(CLINK) $(LFLAGS) -o recover \
$(RECOVOBJS) $(HACKLIB) $(LIBS)
$(TARGETPFX)recover.o: recover.c $(CONFIG_H)
$(TARGET_CC) $(TARGET_CFLAGS) $(CSTD) -c recover.c -o $@
recover.o: recover.c $(CONFIG_H)
$(CC) $(CFLAGS) $(CSTD) -c recover.c -o $@
# dependencies for dlb