Skip to content

Commit 6eeb2d0

Browse files
committed
Adds the -fPIC flag for compilation to solve issue #19
1 parent e496ef9 commit 6eeb2d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ endif()
2626
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR
2727
CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR
2828
(CMAKE_CXX_COMPILER_ID MATCHES "Intel" AND NOT WIN32))
29-
target_compile_options(python-samplerate PRIVATE -std=c++14 -O3 -Wall -Wextra)
29+
target_compile_options(python-samplerate PRIVATE -std=c++14 -O3 -Wall -Wextra -fPIC)
3030
endif()
3131

3232
### stick the package and libsamplerate version into the module

0 commit comments

Comments
 (0)