From: nhmall Date: Tue, 6 Oct 2020 06:01:30 +0000 (-0400) Subject: target lua build was missing -c on cross-compile X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8d31910eca02e5212565fda01c1d80d7508b03c;p=nethack target lua build was missing -c on cross-compile --- diff --git a/sys/unix/hints/include/cross-pre.2020 b/sys/unix/hints/include/cross-pre.2020 index 4fe0f9fac..7700b0baa 100644 --- a/sys/unix/hints/include/cross-pre.2020 +++ b/sys/unix/hints/include/cross-pre.2020 @@ -382,23 +382,23 @@ ifdef WANT_WIN_CURSES ifdef BUILD_PDCURSES # Rules for PDCurses files $(TARGETPFX)%.o : $(PDCTOP)/pdcurses/%.c - $(TARGET_CC) $(PDCINCL) $(TARGET_CFLAGS) -o$@ $< + $(TARGET_CC) $(PDCINCL) $(TARGET_CFLAGS) -c -o$@ $< endif # BUILD_PDCURSES endif # WANT_WIN_CURSES ifdef CROSS_SHARED # Rules for win/share files $(TARGETPFX)%.o : ../win/share/%.c - $(TARGET_CC) $(TARGET_CFLAGS) -o$@ $< + $(TARGET_CC) $(TARGET_CFLAGS) -c -o$@ $< # Rules for util files heading for target $(TARGETPFX)%.o : ../util/%.c - $(TARGET_CC) $(TARGET_CFLAGS) -o$@ $< + $(TARGET_CC) $(TARGET_CFLAGS) -c -o$@ $< endif # CROSS_SHARED ifdef BUILD_TARGET_LUA # Rule for LUA files $(TARGETPFX)%.o : $(LUATOP)/src/%.c - $(TARGET_CC) $(TARGET_CFLAGS) $(LUA_FLAGS) -o$@ $< + $(TARGET_CC) $(TARGET_CFLAGS) -c $(LUA_FLAGS) -o$@ $< endif # BUILD_TARGET_LUA # # End of cross-compiling -PRE section