aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-08-24 20:56:26 -0700
committerMartin Jansa <Martin.Jansa@gmail.com>2017-08-28 11:06:06 +0200
commitbcbd6884a57f7ee10629d7e3e40fbb09e17d8c13 (patch)
treee495999e6f35fae985c889de14c49df64c2af86a
parent2951fb898e7c761e3071521b58c9aa6cc746fba3 (diff)
downloadmeta-openembedded-contrib-bcbd6884a57f7ee10629d7e3e40fbb09e17d8c13.tar.gz
libhugetlbfs: Define HUGETLB_LDSCRIPT_PATH
When accessed relative to build dir it ends up using wrong relative paths and cant find the linker scripts when linked with clang Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb
index 823e07c182..a63494a62d 100644
--- a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb
+++ b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb
@@ -33,6 +33,8 @@ EXTRA_OEMAKE = "'ARCH=${LIBHUGETLBFS_ARCH}' 'OPT=${CFLAGS}' 'CC=${CC}' ${LIBARGS
PARALLEL_MAKE = ""
CFLAGS += "-fexpensive-optimizations -frename-registers -fomit-frame-pointer -g0"
+export HUGETLB_LDSCRIPT_PATH="${S}/ldscripts"
+
TARGET_CC_ARCH += "${LDFLAGS}"
#The CUSTOM_LDSCRIPTS doesn't work with the gold linker