22 lines
798 B
Plaintext
22 lines
798 B
Plaintext
# Include common linux definitions
|
|
include $(CONFIG)/os/CONFIG.linux-x86.linux-x86
|
|
|
|
# "Cross compile" for RHEL7-x86_64
|
|
# Expects RHEL7 RPMs c++ and readline-devel installed
|
|
# in $(SYSROOT)
|
|
# This can be installed on RHEL7 with:
|
|
# yum install --installroot=$(SYSROOT) <packages>
|
|
# (Assuming $(SYSROOT) is on a shared network volume.)
|
|
# Optionally use a newer TOOLSET (installed on $(SYSROOT)).
|
|
|
|
SYSROOT = /opt/RHEL7
|
|
|
|
# "Cross" TOOLSET progs need to find their libraries
|
|
export LD_LIBRARY_PATH := $(LD_LIBRARY_PATH:%=%:)$(TOOLSET_DIR:%=$(SYSROOT)%/usr/$$LIB:)/usr/$$LIB:$(SYSROOT)/usr/$$LIB
|
|
|
|
# The linker has problems to find indirectly referenced libraries
|
|
PROD_LDLIBS += $(LDLIBS)
|
|
|
|
# Allow to run cross-tests which expect different lib versions
|
|
export LD_PRELOAD=$(SYSROOT)/lib64/libreadline.so
|