Date: Thu, 18 Sep 2014 02:33:49 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-standards@FreeBSD.org Subject: [Bug 193730] New: Problem with libbsdstat in cross-compile environment Message-ID: <bug-193730-15@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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@FreeBSD.org Reporter: misho@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-193730-15>