]> granicus.if.org Git - nethack/commitdiff
target lua build was missing -c on cross-compile
authornhmall <nhmall@nethack.org>
Tue, 6 Oct 2020 06:01:30 +0000 (02:01 -0400)
committernhmall <nhmall@nethack.org>
Tue, 6 Oct 2020 06:01:30 +0000 (02:01 -0400)
sys/unix/hints/include/cross-pre.2020

index 4fe0f9faca5637c9af858d58a50d0e413ed8a543..7700b0baaa58cd9d55b0fc636a08663facfff1ef 100644 (file)
@@ -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