Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions meta-oe/recipes-test/gtest/gtest_1.8.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ S = "${WORKDIR}/googletest-release-${PV}"

inherit cmake

# -fPIC is needed to prevent relocation errors when we compile with Yocto
# security flags. See this issue for more details:
#
# https://github.com/google/googletest/issues/854
#
# If that issue is fixed, we can probably remove the manual -fPIC flags here.
OECMAKE_C_FLAGS += " -fPIC"
OECMAKE_CXX_FLAGS += " -fPIC"

ALLOW_EMPTY_${PN} = "1"
ALLOW_EMPTY_${PN}-dbg = "1"

Expand Down