diff mbox series

[oe,meta-oe,1/3] libhugetlbfs: Define HUGETLB_LDSCRIPT_PATH

Message ID 20170825035628.7995-1-raj.khem@gmail.com
State Accepted
Commit bcbd6884a57f7ee10629d7e3e40fbb09e17d8c13
Headers show
Series [oe,meta-oe,1/3] libhugetlbfs: Define HUGETLB_LDSCRIPT_PATH | expand

Commit Message

Khem Raj Aug. 25, 2017, 3:56 a.m. UTC
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>

---
 meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.14.1

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
diff mbox series

Patch

diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb
index 823e07c18..a63494a62 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