HomeFreeBSD

Fix incremental builds after GoogleTest update

Description

Fix incremental builds after GoogleTest update

At the moment, several Makefiles under tests/ do not correctly generate
.depend files, which can lead to link errors when doing incremental
(e.g. WITHOUT_CLEAN) builds:

ld: error: undefined symbol: testing::internal::g_linked_ptr_mutex
>>> referenced by gtest-port.h:2137 (/usr/obj/usr/src/amd64.amd64/tmp/usr/include/private/gtest/internal/gtest-port.h:2137)
>>>               mockfs.o:(testing::internal::linked_ptr_internal::depart())
>>> referenced by gtest-port.h:2139 (/usr/obj/usr/src/amd64.amd64/tmp/usr/include/private/gtest/internal/gtest-port.h:2139)
>>>               mockfs.o:(testing::internal::linked_ptr_internal::depart())
>>> referenced by gtest-port.h:2139 (/usr/obj/usr/src/amd64.amd64/tmp/usr/include/private/gtest/internal/gtest-port.h:2139)
>>>               mockfs.o:(testing::internal::linked_ptr_internal::depart())
>>> referenced 3 more times

For the time being, put in a depend-cleanup.sh workaround for this.

Reported by: des
Reviewed by: emaste
Fixes: 28f6c2f29280
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D41476

Details

Provenance
dimAuthored on Aug 15 2023, 9:14 PM
Reviewer
rG28f6c2f29280: Import GoogleTest 1.14.0
Differential Revision
D41476: Fix incremental builds after GoogleTest update
Parents
rGda51a1211dc7: RELNOTES: Note the deprecation of 32-bit platforms for 15.0.
Branches
Unknown
Tags
Unknown