Date: Wed, 17 May 2017 16:43:07 +0000 From: bugzilla-noreply@freebsd.org To: gnome@FreeBSD.org Subject: [Bug 219161] www/webkit2-gtk3: 2.14.6 fails to build depending on $PATH Message-ID: <bug-219161-6497-H1MsR4lMlx@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-219161-6497@https.bugs.freebsd.org/bugzilla/> References: <bug-219161-6497@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219161 --- Comment #7 from John Hein <z7dr6ut7gs@snkmail.com> --- Created attachment 182671 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D182671&action= =3Dedit [patch] explicitly point to base binutils tools if not using ports binutils I added an -B/usr/bin to Carlos' patch. If we are explicitly setting the p= ath for certain base tools (/usr/bin/ar, etc.), we should explicitly tell clang= ++40 to look in /usr/bin at link time instead of relying on /usr/bin being in yo= ur path before /usr/local/bin. It turns out that the newer ld from the binutils port will probably work fi= ne with .a files generated by the current /usr/bin/ar & /usr/bin/ranlib. But = it's better to explicitly point to /usr/bin/ld to match the use of base ar & ran= lib, IMO. By the way, something in the cmake code is causing the detection of ar, ran= lib, etc., tools based on the CMAKE_CXX_COMPILER path. If CMAKE_CXX_COMPILER is /usr/local/bin/clang++40, it finds ar, ranlib, etc., in /usr/local/bin (if binutils port is installed). If CMAKE_CXX_COMPILER is /usr/bin/c++, cmake finds ar, ranlib, etc., in /usr/bin. Trying to follow the cmake logic to see where the determination which tool = to use is difficult (at least for me). I'm no cmake guru. So there may be another way to "hint" cmake where to look for the tools. But this patch wo= rks well enough, I think. --=20 You are receiving this mail because: You are on the CC list for the bug. 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-219161-6497-H1MsR4lMlx>