aws-samples / amazon-kinesis-video-streams-producer-embedded-c

Light-wight Amazon Kinesis Video Streams Producer SDK For FreeRTOS/Embedded Linux
Apache License 2.0
27 stars 17 forks source link

cmake: install target fix #41

Closed codingspirit closed 2 years ago

codingspirit commented 2 years ago

Signed-off-by: zhiqinli@amazon.com zhiqinli@amazon.com

Issue #, if available:

Description of changes: Make sure 3rd party dependencies will be properly installed

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

codingspirit commented 2 years ago

This PR will fix possible build error with t31 toolchain by adding "-fPIC" flag:

[ 92%] Linking C shared library ../../lib/libsamplescommon.so
/mips-gcc472-glibc216-64bit/bin/../lib/gcc/mips-linux-gnu/4.7.2/../../../../mips-linux-gnu/bin/ld: ../../lib/libkvs-embedded-c.a(mkv_generator.c.o): relocation R_MIPS_26 against `getRandomNumber' can not be used when making a shared object; recompile with -fPIC
../../lib/libkvs-embedded-c.a: error adding symbols: Bad value