mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 08:29:29 +02:00
Change conditions under which IDE executable is generated:
Add GDBMI_IS_STATIC variable, set to true for systems which generate static FP IDE executable (without library dependencies) and can thus also be compiled in cross-compile conditions. Only add -sp fpmake option (which means skip executable generation) if GDBMI_IS_STATIC is not defined. git-svn-id: trunk@34522 -
This commit is contained in:
parent
dcd349abd9
commit
ca4f7719f3
@ -50,26 +50,37 @@ FPMAKE_OPT+=$(FPC_TARGETOPT)
|
||||
FPMAKE_OPT+=$(addprefix -o ,$(FPCOPT))
|
||||
FPMAKE_OPT+=--compiler=$(FPC)
|
||||
FPMAKE_OPT+=-bu
|
||||
ifndef BUILDFULLNATIVE
|
||||
FPMAKE_OPT+=-sp
|
||||
endif
|
||||
ifdef NOGDB
|
||||
FPMAKE_OPT+=--NoGDB=1
|
||||
else
|
||||
ifndef NOGDBMI
|
||||
ifneq ($(findstring $(OS_TARGET),$(GDBMI_DEFAULT_OS_LIST)),)
|
||||
FPMAKE_OPT+=--GDBMI=1
|
||||
GDBMI=1
|
||||
endif
|
||||
else
|
||||
endif # NOGDBMI
|
||||
|
||||
ifdef GDBMI
|
||||
FPMAKE_OPT+=--GDBMI=1
|
||||
# If the rtl does not require libc, then
|
||||
# IDE compiled with GDBMI should be a static executable
|
||||
# and can thus be cross-compiled
|
||||
ifeq ($(findstring $(OS_TARGET),aix beos darwin haiku solaris),)
|
||||
GDBMI_IS_STATIC=1
|
||||
endif
|
||||
endif
|
||||
endifa # NOGDB
|
||||
|
||||
ifndef GDBMI_IS_STATIC
|
||||
ifndef BUILDFULLNATIVE
|
||||
# Omit executable is only required if generated executable is not static
|
||||
FPMAKE_OPT+=-sp
|
||||
endif
|
||||
endif # GDBMI_IS_STATIC
|
||||
|
||||
ifdef PPC_TARGET
|
||||
FPMAKE_OPT+=--CompilerTarget=$(PPC_TARGET)
|
||||
endif
|
||||
|
||||
.NOTPARALLEL:
|
||||
|
||||
fpmake$(SRCEXEEXT): fpmake.pp
|
||||
|
Loading…
Reference in New Issue
Block a user