Skip to content

Commit c394044

Browse files
committed
Build the MariaODBC driver as a module
When built as a module instead of a shared library, the library is no longer exporting an unversioned soname. Since this is library is only meant to be dynamically loaded by the ODBC manager, the soname is unused anyway.
1 parent 5ab0373 commit c394044

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ IF(WIN32)
312312
ADD_LIBRARY(${LIBRARY_NAME} SHARED ${MARIADB_ODBC_SOURCES} ${CMAKE_SOURCE_DIR}/mariadb-odbc-driver-uni.def maodbcu.rc)
313313
ELSE()
314314
MESSAGE(STATUS "Version script: ${CMAKE_SOURCE_DIR}/maodbc.def")
315-
ADD_LIBRARY(${LIBRARY_NAME} SHARED ${MARIADB_ODBC_SOURCES} maodbcu.rc)
315+
ADD_LIBRARY(${LIBRARY_NAME} MODULE ${MARIADB_ODBC_SOURCES} maodbcu.rc)
316316

317317
IF(APPLE)
318318
SET(MAODBC_INSTALL_RPATH "${ODBC_LIB_DIR}" "@loader_path" "/usr/local/opt/libiodbc" "/usr/local/iODBC/lib" "/usr/local/opt/[email protected]/lib" "/usr/local/opt/libressl/lib")

0 commit comments

Comments
 (0)