diff options
author | Zibo Zhao <Zibo.Zhao@windriver.com> | 2014-08-27 12:06:07 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-08-27 12:31:09 -0400 |
commit | 5d8233a69979af36105ad5ec978a1a4c686a2148 (patch) | |
tree | 3fae5a8eff023fe661fe97a383effe78cd79e7a1 | |
parent | a04aeb9ad94f3781759b7c96e57bcecf108be335 (diff) | |
download | meta-virtualization-5d8233a69979af36105ad5ec978a1a4c686a2148.tar.gz |
protobuf: fix ptest compile errors
While buiding protobuf ptest on Centos 6.4, the build
failed with errors:
...libprotobuf.so: undefined reference to `memcpy@GLIBC_2.14'
This is due to protobuf.pc still contains /usr/lib64
as libdir which are not good for cross compiling.
Replace it with proper sysroot path.
Signed-off-by: Zibo Zhao <Zibo.Zhao@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r-- | recipes-containers/criu/protobuf_2.5.0.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/recipes-containers/criu/protobuf_2.5.0.bb b/recipes-containers/criu/protobuf_2.5.0.bb index a85fd87a..fc84cb72 100644 --- a/recipes-containers/criu/protobuf_2.5.0.bb +++ b/recipes-containers/criu/protobuf_2.5.0.bb | |||
@@ -39,6 +39,7 @@ do_compile_ptest() { | |||
39 | # Add the location of the cross-compiled header and library files | 39 | # Add the location of the cross-compiled header and library files |
40 | # which haven't been installed yet. | 40 | # which haven't been installed yet. |
41 | cp "${B}/protobuf.pc" "${B}/${TEST_SRC_DIR}/protobuf.pc" | 41 | cp "${B}/protobuf.pc" "${B}/${TEST_SRC_DIR}/protobuf.pc" |
42 | sed -e 's|libdir=|libdir=${PKG_CONFIG_SYSROOT_DIR}|' -i "${S}/${TEST_SRC_DIR}/protobuf.pc" | ||
42 | sed -e 's|Cflags:|Cflags: -I${S}/src|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc" | 43 | sed -e 's|Cflags:|Cflags: -I${S}/src|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc" |
43 | sed -e 's|Libs:|Libs: -L${B}/src/.libs|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc" | 44 | sed -e 's|Libs:|Libs: -L${B}/src/.libs|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc" |
44 | export PKG_CONFIG_PATH="${B}/${TEST_SRC_DIR}" | 45 | export PKG_CONFIG_PATH="${B}/${TEST_SRC_DIR}" |