mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-24 03:37:16 +00:00
Fix up dependency finding for libg{mock,test}_main
- Look up the corresponding non-*_main libraries via LDFLAGS using the directories provided in src.libnames.mk. This will allow the libraries to be built in the "make libraries" phase of buildworld. - gtest_main relies on gtest, but didn't explicitly call out the dependency in `LIBADD`. Fill in this missing blank.
This commit is contained in:
parent
1ab321591f
commit
df13161740
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/import-googletest-1.8.1/; revision=344324
|
@ -12,7 +12,11 @@ CXXFLAGS+= -I${GOOGLEMOCK_SRCROOT}/include
|
|||
CXXFLAGS+= -I${GOOGLEMOCK_SRCROOT}
|
||||
CXXFLAGS+= -I${GOOGLETEST_SRCROOT}/include
|
||||
|
||||
LIBADD= gmock
|
||||
LIBADD+= gmock
|
||||
# NB: LDFLAGS added for buildworld builds
|
||||
LDFLAGS+= -L${LIBGTESTDIR}
|
||||
LDFLAGS+= -L${LIBGMOCKDIR}
|
||||
|
||||
SRCS+= gmock_main.cc
|
||||
|
||||
SUBDIR.${MK_TESTS}+= tests
|
||||
|
|
|
@ -11,6 +11,10 @@ PRIVATELIB= true
|
|||
CXXFLAGS+= -I${GOOGLETEST_SRCROOT}/include
|
||||
CXXFLAGS+= -I${GOOGLETEST_SRCROOT}
|
||||
|
||||
LIBADD+= gtest
|
||||
# NB: LDFLAGS added for buildworld builds
|
||||
LDFLAGS+= -L${LIBGTESTDIR}
|
||||
|
||||
SRCS+= gtest_main.cc
|
||||
|
||||
SUBDIR.${MK_TESTS}+= tests
|
||||
|
|
Loading…
Reference in a new issue