fix path to djgpp c++ compiler in ms-dos cross-compile
This commit is contained in:
@@ -150,7 +150,7 @@ CFLAGS += -DCROSSCOMPILE
|
||||
TOOLTOP1 = ../lib/djgpp/bin
|
||||
TOOLTOP2 = ../lib/djgpp/i586-pc-msdosdjgpp/bin
|
||||
override TARGET_CC = $(TOOLTOP1)/i586-pc-msdosdjgpp-gcc
|
||||
override TARGET_CXX = $(TOOLTOP2)/g++
|
||||
override TARGET_CXX = $(TOOLTOP1)/i586-pc-msdosdjgpp-g++
|
||||
override TARGET_AR = $(TOOLTOP1)/i586-pc-msdosdjgpp-gcc-ar
|
||||
override TARGET_STUBEDIT = ../lib/djgpp/i586-pc-msdosdjgpp/bin/stubedit
|
||||
MSDOS_TARGET_CFLAGS = -c -O -I../include -I../sys/msdos -I../win/share \
|
||||
@@ -160,6 +160,11 @@ MSDOS_TARGET_CFLAGS = -c -O -I../include -I../sys/msdos -I../win/share \
|
||||
-Wformat -Wswitch -Wshadow -Wwrite-strings \
|
||||
-Wimplicit -Wimplicit-function-declaration -Wimplicit-int \
|
||||
-Wmissing-parameter-type -Wold-style-definition -Wstrict-prototypes
|
||||
MSDOS_TARGET_CXXFLAGS = -c -O -I../include -I../sys/msdos -I../win/share \
|
||||
$(LUAINCL) -DDLB $(PDCURSESDEF) \
|
||||
-DUSE_TILES -DCROSSCOMPILE -DCROSSCOMPILE_TARGET -DCROSS_TO_MSDOS \
|
||||
-Wall -Wextra -Wno-missing-field-initializers -Wreturn-type -Wunused \
|
||||
-Wformat -Wswitch -Wshadow -Wwrite-strings -Wno-maybe-uninitialized
|
||||
PDCINCL += -I$(PDCPORT)
|
||||
PDC_TARGET_CFLAGS = $(MSDOS_TARGET_CFLAGS) -Wno-unused-parameter \
|
||||
-Wno-missing-prototypes
|
||||
@@ -175,8 +180,12 @@ LUA_TARGET_CFLAGS = $(MSDOS_TARGET_CFLAGS)
|
||||
override TARGET_CFLAGS = $(MSDOS_TARGET_CFLAGS) -Wmissing-declarations \
|
||||
-Wmissing-prototypes -pedantic -Wmissing-declarations \
|
||||
-Wformat-nonliteral
|
||||
override TARGET_CXXFLAGS = $(TARGET_CFLAGS)
|
||||
override TARGET_CXXFLAGS = $(MSDOS_TARGET_CXXFLAGS)
|
||||
ifdef CPLUSPLUS_NEEDED
|
||||
override TARGET_LINK = $(TOOLTOP1)/i586-pc-msdosdjgpp-g++
|
||||
else
|
||||
override TARGET_LINK = $(TOOLTOP1)/i586-pc-msdosdjgpp-gcc
|
||||
endif
|
||||
override TARGET_LFLAGS=
|
||||
override TARGET_LIBS += -lpc
|
||||
override SYSSRC = ../sys/share/pcmain.c ../sys/msdos/msdos.c \
|
||||
|
||||
Reference in New Issue
Block a user