Skip to content

Commit

Permalink
Use "dylib" uniformly on MacOSX
Browse files Browse the repository at this point in the history
Till PG15, shared libraries with ".so" suffix used to be loaded
properly on MacOSX. That has changed with PG16. Change it so that
shared libraries will uniformly use the ".dylib" suffix on MacOSX
  • Loading branch information
nikkhils committed Oct 26, 2023
1 parent f8b8bef commit d01d950
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/build-defs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ if(UNIX)
endif()

if(APPLE)
if((${PG_VERSION_MAJOR} GREATER_EQUAL "16"))
set(CMAKE_SHARED_MODULE_SUFFIX ".dylib")
endif()
set(CMAKE_SHARED_LINKER_FLAGS
"${CMAKE_SHARED_LINKER_FLAGS} -multiply_defined suppress")
set(CMAKE_MODULE_LINKER_FLAGS
Expand Down
3 changes: 3 additions & 0 deletions tsl/src/build-defs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ if(UNIX)
endif()

if(APPLE)
if((${PG_VERSION_MAJOR} GREATER_EQUAL "16"))
set(CMAKE_SHARED_MODULE_SUFFIX ".dylib")
endif()
set(CMAKE_SHARED_LINKER_FLAGS
"${CMAKE_SHARED_LINKER_FLAGS} -multiply_defined suppress")
set(CMAKE_MODULE_LINKER_FLAGS
Expand Down

0 comments on commit d01d950

Please sign in to comment.