mirror of https://github.com/drowe67/LPCNet.git
-fPIC is actually causing crashes on macOS, let's try another way instead.
parent
ae7d56883c
commit
c1e4838305
|
@ -10,7 +10,7 @@ set(codec2_import_srcs
|
|||
# Set visibility of files brought in from Codec2 so that they're not visible to
|
||||
# users (such as Codec2 itself).
|
||||
foreach(CODEC2_FILE IN LISTS codec2_import_srcs)
|
||||
set_source_files_properties(${CODEC2_FILE} PROPERTIES COMPILE_FLAGS "-fPIC -fvisibility=hidden -include ${CMAKE_CURRENT_SOURCE_DIR}/codec2_renames.h")
|
||||
set_source_files_properties(${CODEC2_FILE} PROPERTIES COMPILE_FLAGS "${LPCNET_C_PROC_FLAGS} -fvisibility=hidden -include ${CMAKE_CURRENT_SOURCE_DIR}/codec2_renames.h")
|
||||
endforeach()
|
||||
|
||||
add_library(lpcnet_from_codec2 STATIC ${codec2_import_srcs})
|
||||
add_library(lpcnet_from_codec2 OBJECT ${codec2_import_srcs})
|
||||
|
|
Loading…
Reference in New Issue