Fix build failing for libnh when using TARGETPFX
Compiling with WANT_LIBNH=1 and TARGETPFX=(...) failed because ioctl.o could not be found. This is because the targets are specified with the $(TARGETPFX) but the libnh targets consumed these targets without the $(TARGETPFX).
This commit is contained in:
@@ -155,8 +155,9 @@ LIBNHSYSSRC = ../sys/libnh/libnhmain.c \
|
||||
../sys/share/ioctl.c ../sys/share/unixtty.c \
|
||||
../sys/unix/unixunix.c ../sys/unix/unixres.c \
|
||||
../win/shim/winshim.c
|
||||
LIBNHSYSOBJ= libnhmain.o ioctl.o unixtty.o unixunix.o \
|
||||
unixres.o winshim.o
|
||||
LIBNHSYSOBJ = libnhmain.o $(TARGETPFX)ioctl.o \
|
||||
$(TARGETPFX)unixtty.o $(TARGETPFX)unixunix.o \
|
||||
$(TARGETPFX)unixres.o winshim.o
|
||||
#don't bother building the game executable as it will fail
|
||||
#without winshim
|
||||
override GAME=
|
||||
|
||||
@@ -155,8 +155,9 @@ LIBNHSYSSRC = ../sys/libnh/libnhmain.c \
|
||||
../sys/share/ioctl.c ../sys/share/unixtty.c \
|
||||
../sys/unix/unixunix.c ../sys/unix/unixres.c \
|
||||
../win/shim/winshim.c
|
||||
LIBNHSYSOBJ= libnhmain.o ioctl.o unixtty.o unixunix.o \
|
||||
unixres.o winshim.o
|
||||
LIBNHSYSOBJ = libnhmain.o $(TARGETPFX)ioctl.o \
|
||||
$(TARGETPFX)unixtty.o $(TARGETPFX)unixunix.o \
|
||||
$(TARGETPFX)unixres.o winshim.o
|
||||
#don't bother building the game executable as it will fail
|
||||
#without winshim
|
||||
override GAME=
|
||||
|
||||
Reference in New Issue
Block a user