+ take care of OPTNEW when building utils

git-svn-id: trunk@44866 -
This commit is contained in:
florian 2020-04-19 19:07:43 +00:00
parent 6636f3f0dc
commit c96a3cc9d1
2 changed files with 14 additions and 0 deletions

View File

@ -202,6 +202,12 @@ $(error When compiling for xtensa-embedded, a sub-architecture (e.g. SUBARCH=lx1
endif endif
override FPCOPT+=-Cp$(SUBARCH) override FPCOPT+=-Cp$(SUBARCH)
endif endif
ifeq ($(FULL_TARGET),xtensa-embedded)
ifeq ($(SUBARCH),)
$(error When compiling for xtensa-embedded, a sub-architecture (e.g. SUBARCH=lx106 or SUBARCH=lx6) must be defined)
endif
override FPCOPT+=-Cp$(SUBARCH)
endif
ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),) ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
TARGETSUFFIX=$(OS_TARGET) TARGETSUFFIX=$(OS_TARGET)
SOURCESUFFIX=$(OS_SOURCE) SOURCESUFFIX=$(OS_SOURCE)
@ -335,6 +341,9 @@ FPMAKE_SKIP_CONFIG=-n
FPCFPMAKE=$(FPC) FPCFPMAKE=$(FPC)
endif endif
endif endif
ifdef OPTNEW
override FPCOPT+=$(OPTNEW)
endif
ifeq ($(FULL_TARGET),i386-linux) ifeq ($(FULL_TARGET),i386-linux)
override TARGET_PROGRAMS+=fpc ppufiles ppudump ppumove mka64ins mkarmins mkx86ins override TARGET_PROGRAMS+=fpc ppufiles ppudump ppumove mka64ins mkarmins mkx86ins
endif endif

View File

@ -25,6 +25,11 @@ fpcdir=../..
[shared] [shared]
build=n build=n
[prerules]
ifdef OPTNEW
override FPCOPT+=$(OPTNEW)
endif
[rules] [rules]
# #
# PPU Tools # PPU Tools