mirror of https://github.com/getdnsapi/getdns.git
build: fix exporting symbols for extension libraries
This commit is contained in:
parent
bda845ce43
commit
6507e4c469
|
@ -20,7 +20,7 @@ function(target_shared_library_exports lib libname symbols)
|
|||
file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/${libname}.ver" " ${symbol};\n")
|
||||
endforeach ()
|
||||
file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/${libname}.ver" "local:\n *;\n};\n")
|
||||
target_link_libraries(${lib} PRIVATE "-Wl,--version-script=getdns.ver")
|
||||
target_link_libraries(${lib} PRIVATE "-Wl,--version-script=${libname}.ver")
|
||||
else ()
|
||||
message(WARNING "Unknown platform, ${lib} exports not set.")
|
||||
endif ()
|
||||
|
|
Loading…
Reference in New Issue