mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 15:23:48 +01:00
Compile libsoxr with position independent code on Linux...
... so that an extracted library can link to it
This commit is contained in:
@@ -95,3 +95,6 @@ target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
|
|||||||
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
|
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
|
||||||
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
||||||
|
|
||||||
|
if( CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
|
||||||
|
target_compile_options( ${TARGET} PRIVATE -fPIC )
|
||||||
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user