mirror of https://github.com/drowe67/LPCNet.git
-fPIC is required for Codec2 code to build on Linux.
parent
7ee18d49b0
commit
ae7d56883c
|
@ -10,7 +10,7 @@ set(codec2_import_srcs
|
||||||
# Set visibility of files brought in from Codec2 so that they're not visible to
|
# Set visibility of files brought in from Codec2 so that they're not visible to
|
||||||
# users (such as Codec2 itself).
|
# users (such as Codec2 itself).
|
||||||
foreach(CODEC2_FILE IN LISTS codec2_import_srcs)
|
foreach(CODEC2_FILE IN LISTS codec2_import_srcs)
|
||||||
set_source_files_properties(${CODEC2_FILE} PROPERTIES COMPILE_FLAGS "-fvisibility=hidden -include ${CMAKE_CURRENT_SOURCE_DIR}/codec2_renames.h")
|
set_source_files_properties(${CODEC2_FILE} PROPERTIES COMPILE_FLAGS "-fPIC -fvisibility=hidden -include ${CMAKE_CURRENT_SOURCE_DIR}/codec2_renames.h")
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
add_library(lpcnet_from_codec2 STATIC ${codec2_import_srcs})
|
add_library(lpcnet_from_codec2 STATIC ${codec2_import_srcs})
|
Loading…
Reference in New Issue