[Bug 193730] New: Problem with libbsdstat in cross-compile environment
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Sep 18 02:33:49 UTC 2014
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193730
Bug ID: 193730
Summary: Problem with libbsdstat in cross-compile environment
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any
Status: Needs Triage
Severity: Affects Many People
Priority: ---
Component: standards
Assignee: freebsd-standards at FreeBSD.org
Reporter: misho at elwix.org
When someone try to cross compile freebsd to other architecture and more
especially his interest to programs which harvesting some statistics about
wifi. We immediately will be stuck on linker, because freebsd project framework
cannot properly supply path to compiled libbsdstat.so shared library.
This is too bad and 3th party fixes are very specific and custom. They leads to
problems in feature for each freebsd and user.
At this moment specific and private solution is to deliver of linker process
correct path location. I thinking that is not right solution at any point of
view, but this will be good start point for explanation of problem.
My private solution for cross compiling *stat tools at all::
- I found variable which properly affected end result LIBBSDSTATDIR
- After this I did some first aid with shell scripting for correct path
...... snip ....
if [ "$(uname -m)" != ${TARGET} ]; then
BSDSTATDIR="${BSDOBJ}/${TARGET}.${TARGET_ARCH}${BSDSRC}/lib/libbsdstat"
else
BSDSTATDIR="${BSDOBJ}${BSDSRC}/lib/libbsdstat"
fi
..... snip ....
make DESTDIR=${WORLD} clean
make DESTDIR=${WORLD} LIBBSDSTATDIR="${BSDSTATDIR}"
make DESTDIR=${WORLD} install
...... snip ....
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-standards
mailing list