mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 08:09:18 +02:00
* better support for crosscompiling binaries install
This commit is contained in:
parent
b9dd3b25cc
commit
68aae0de5e
@ -481,9 +481,17 @@ endif
|
|||||||
# set the directory where to install the binaries
|
# set the directory where to install the binaries
|
||||||
ifndef INSTALL_BINDIR
|
ifndef INSTALL_BINDIR
|
||||||
ifdef UNIXINSTALLDIR
|
ifdef UNIXINSTALLDIR
|
||||||
|
ifdef CROSSCOMPILE
|
||||||
|
INSTALL_BINDIR:=$(INSTALL_BASEDIR)/cross/$(FULL_TARGET)/bin
|
||||||
|
else
|
||||||
INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin
|
INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
ifdef CROSSCOMPILE
|
||||||
|
INSTALL_BINDIR:=$(INSTALL_BASEDIR)/cross/$(FULL_TARGET)/bin
|
||||||
else
|
else
|
||||||
INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin
|
INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin
|
||||||
|
endif
|
||||||
# for FPC packages install the binaries under their os target subdir
|
# for FPC packages install the binaries under their os target subdir
|
||||||
ifdef INSTALL_FPCPACKAGE
|
ifdef INSTALL_FPCPACKAGE
|
||||||
INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(OS_TARGET)
|
INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(OS_TARGET)
|
||||||
|
Loading…
Reference in New Issue
Block a user