open-plc-utils: new package
[buildroot-gz.git] / package / libiio / 0001-cmake-let-BUILD_SHARED_LIBS-drive-the-type-of-librar.patch
blob9ee02992437dde6eb93bbbd4193efc379580999a
1 From 4d036f3708f1f427bf91c5925394d39ef76ad96a Mon Sep 17 00:00:00 2001
2 From: Samuel Martin <s.martin49@gmail.com>
3 Date: Sat, 27 Dec 2014 16:36:50 +0100
4 Subject: [PATCH] cmake: let BUILD_SHARED_LIBS drive the type of library built
6 Do not force the type of library because some architectures (such as
7 BlackFin from AnalogDevice) do not support shared object.
9 Signed-off-by: Samuel Martin <s.martin49@gmail.com>
10 ---
11 CMakeLists.txt | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
14 diff --git a/CMakeLists.txt b/CMakeLists.txt
15 index cd82a96..393fee3 100644
16 --- a/CMakeLists.txt
17 +++ b/CMakeLists.txt
18 @@ -115,7 +115,7 @@ install(FILES ${LIBIIO_PC} DESTINATION "${INSTALL_PKGCONFIG_DIR}")
19 #set(SETUP_PY ${CMAKE_CURRENT_SOURCE_DIR}/bindings/python/setup.py)
20 #configure_file(python/setup.py.in ${SETUP_PY} @ONLY)
22 -add_library(iio SHARED ${LIBIIO_CFILES} ${LIBIIO_HEADERS})
23 +add_library(iio ${LIBIIO_CFILES} ${LIBIIO_HEADERS})
24 set_target_properties(iio PROPERTIES VERSION ${VERSION} SOVERSION ${LIBIIO_VERSION_MAJOR})
25 target_link_libraries(iio LINK_PRIVATE ${LIBS_TO_LINK})
27 --
28 2.2.1