Merge sync of head
Add LIB_CXX so that C++ libraries will use CXX to link.This fixes C++ libraries not implicitly linking in libc++. This isgenerally not an issue because the final linking with the compiled binary
Add LIB_CXX so that C++ libraries will use CXX to link.This fixes C++ libraries not implicitly linking in libc++. This isgenerally not an issue because the final linking with the compiled binarywill involve CXX via PROG_CXX or other means. It is howeverinconsistent with libraries implicitly linking in libc and problematicfor trying to build libraries with '-z defs' to ensure all directdependencies are linked in.libatf-c++ is currently the only consumer of this new feature.Differential Revision: https://reviews.freebsd.org/D2039Reviewed by: impDiscussed with: baptMFC after: 2 weeksSponsored by: EMC / Isilon Storage Division
show more ...
Convert libraries to use LIBADDWhile here reduce a bit overlinking
Merge from head@274682
MFV: Import atf-0.21.
Merge head from 7/28
Fix typo in lib/atf/libatfc++/MakefileLIBATFC should be LIBATF_C; this was missed in the initial import(r241823)PR: 192731MFC after: 3 daysPhabric: D619Approved by: rpaulo (mentor)
Homogenize libatf-* version numbers with upstream.The libatf-* major version numbers in FreeBSD were one version ahead ofupstream because, when atf was first imported into FreeBSD, the upstreamnu
Homogenize libatf-* version numbers with upstream.The libatf-* major version numbers in FreeBSD were one version ahead ofupstream because, when atf was first imported into FreeBSD, the upstreamnumbers were not respected. This is just confusing and bound to causeproblems down the road.Fix this by taking advantage of the fact that libatf-* are now privateand that atf is not yet built by default. However, and unfortunately, aclean build is needed for tests to continue working once "makedelete-old-libs" has been run; hence the note in UPDATING.
Change libatf-c and libatf-c++ to be private libraries.We should not be leaking these interfaces to the outside world giventhat it's much easier for third-party components to use the devel/atfpac
Change libatf-c and libatf-c++ to be private libraries.We should not be leaking these interfaces to the outside world giventhat it's much easier for third-party components to use the devel/atfpackage from ports.As a side-effect, we can also drop the ATF pkgconfig and aclocal filesfrom the base system. Nothing in the base system needs these, and itwas quite ugly to have to get them installed only so that a few portscould build. The offending ports have been fixed to depend ondevel/atf explicitly.Reviewed by: bapt
Updated dependencies
Merge from head
Use src.opts.mk in preference to bsd.own.mk except where we need stufffrom the latter.
Merge head
Add atf m4 files from the vendor branch.These were originally deleted as "not important" but, actually we need themin place if we want to be able to use autoconf on software that providesatf-base
Add atf m4 files from the vendor branch.These were originally deleted as "not important" but, actually we need themin place if we want to be able to use autoconf on software that providesatf-based tests. (That includes being able to rebuild autotest from scratchon the Kyua cluster machines, as the automated setup does.)
Make bsd.test.mk the only public mk fragment for the building of tests.Change {atf,plain,tap}.test.mk to be internal implementation details ofbsd.test.mk. Makefiles that build tests should now on
Make bsd.test.mk the only public mk fragment for the building of tests.Change {atf,plain,tap}.test.mk to be internal implementation details ofbsd.test.mk. Makefiles that build tests should now only include bsd.test.mkand declaratively specify what they want to build, without worrying aboutthe internal implementation of the mk files.The reason for this change is to permit building test programs of differentinterfaces from a single directory, which is something I had a need forwhile porting tests over from src/tools/regression/.Additionally, this change makes it possible to perform some other requestedchanges to bsd.test.mk in an easier manner. Coming soon.
MFV: Import atf-0.20.
Generate and install pkg-config files for atf.These files are required to get packages in ports to build against atf andalso to get a couple of currently-failing tests to pass.I'm following the
Generate and install pkg-config files for atf.These files are required to get packages in ports to build against atf andalso to get a couple of currently-failing tests to pass.I'm following the approach already used by the libusb pkg-config filesinstalled by the system regarding the location and the install rules.MFC after: 5 days
Respect the original layout of the atf-{c,c++} tests.Put test programs for internal modules into a 'detail' subdirectory of thelibatf-c and libatf-c++ test directories, just as the upstream distri
Respect the original layout of the atf-{c,c++} tests.Put test programs for internal modules into a 'detail' subdirectory of thelibatf-c and libatf-c++ test directories, just as the upstream distributiondoes. This is necessary because the tests assume such layout to find theprocess_helper program, and currently fail because of this divergence.MFC after: 1 week
MFV: Import atf-0.18.Approved by: rpaulo (mentor)
Fix the build of some ATF tests.When building various programs from a single Makefile, program-specificvariables are of the form <VAR>.<PROG>, not <VAR>_<PROG>. Fix thisobvious typo to fix the b
Fix the build of some ATF tests.When building various programs from a single Makefile, program-specificvariables are of the form <VAR>.<PROG>, not <VAR>_<PROG>. Fix thisobvious typo to fix the build when WITH_TESTS=yes.I am not sure how this ever worked before given that manual inspectionof bsd.progs.mk clearly shows that the expected character between thetwo components is a dot and not an underscore... but I suspect thechanges in r258095 exposed this oddity.Approved by: rpaulo (mentor)
Build and install the atf tests.Reviewed by: freebsd-testingApproved by: rpaulo (mentor)
Sync with HEAD.
123