diff --git a/builds/posix/make.defaults b/builds/posix/make.defaults index b349efbc24..b68fcb6195 100755 --- a/builds/posix/make.defaults +++ b/builds/posix/make.defaults @@ -259,17 +259,17 @@ endif FIREBIRD_VERS = firebird.vers FBINTL_VERS = fbintl.vers IB_UTIL_VERS = ib_util.vers -UDR_ENGINE_VERS = udr_engine.vers +UDR_PLUGIN_VERS = udr_plugin.vers EMPTY_VERS = empty.vers PLUGIN_VERS = fbplugin.vers ALLVERS = $(FIREBIRD_VERS) $(FBINTL_VERS) $(IB_UTIL_VERS) -ALLVERS += $(UDR_ENGINE_VERS) $(EMPTY_VERS) $(PLUGIN_VERS) +ALLVERS += $(UDR_PLUGIN_VERS) $(EMPTY_VERS) $(PLUGIN_VERS) LINK_FIREBIRD_SYMBOLS = $(call LIB_LINK_MAPFILE,$(FIREBIRD_VERS)) LINK_FBINTL_SYMBOLS = $(call LIB_LINK_MAPFILE,$(FBINTL_VERS)) LINK_IBUTIL_SYMBOLS = $(call LIB_LINK_MAPFILE,$(IB_UTIL_VERS)) -LINK_UDRENG_SYMBOLS = $(call LIB_LINK_MAPFILE,$(UDR_ENGINE_VERS)) +LINK_UDR_PLUGIN_SYMBOLS = $(call LIB_LINK_MAPFILE,$(UDR_PLUGIN_VERS)) LINK_EMPTY_SYMBOLS = $(call LIB_LINK_MAPFILE,$(EMPTY_VERS)) LINK_PLUGIN_SYMBOLS = $(call LIB_LINK_MAPFILE,$(PLUGIN_VERS)) LINK_EXEC_EXPORT=-rdynamic @@ -320,7 +320,7 @@ LINK_ENGINE = $(LIB_LINK) $(LINK_PLUGIN_SYMBOLS) $(LIB_LINK_OPTIONS) $(LIB_FIREB $(call LIB_LINK_SONAME,$(EngineSoName)) $(call LIB_LINK_RPATH,lib) LINK_ENGINE_LIBS = $(LINK_FIREBIRD_LIBS) $(FIREBIRD_LIBRARY_LINK) -LINK_UDRENG = $(LIB_LINK) $(LINK_UDRENG_SYMBOLS) $(LIB_LINK_OPTIONS) $(call LIB_LINK_RPATH,lib) $(UNDEF_FLAGS) +LINK_UDRENG = $(LIB_LINK) $(LINK_PLUGIN_SYMBOLS) $(LIB_LINK_OPTIONS) $(call LIB_LINK_RPATH,lib) $(UNDEF_FLAGS) LINK_UDRENG_LIBS = -L$(LIB) $(SO_LINK_LIBS) LINK_PLUGIN = $(LIB_LINK) $(LINK_PLUGIN_SYMBOLS) $(LIB_LINK_OPTIONS) $(call LIB_LINK_RPATH,lib) $(UNDEF_FLAGS) diff --git a/builds/posix/udr_engine.vers b/builds/posix/udr_plugin.vers similarity index 85% rename from builds/posix/udr_engine.vers rename to builds/posix/udr_plugin.vers index 254fa1217f..5cbd7266a0 100644 --- a/builds/posix/udr_engine.vers +++ b/builds/posix/udr_plugin.vers @@ -7,25 +7,22 @@ # you may not use this file except in compliance with the # License. You may obtain a copy of the License at # http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. -# +# # Software distributed under the License is distributed AS IS, # WITHOUT WARRANTY OF ANY KIND, either express or implied. # See the License for the specific language governing rights # and limitations under the License. -# +# # The Original Code was created by Nickolay Samofatov # for the Firebird Open Source RDBMS project. -# -# Copyright (c) 2004 Nickolay Samofatov +# +# Copyright (c) 2015 Adriano dos Santos Fernandes # and all contributors signed below. -# +# # All Rights Reserved. # Contributor(s): ______________________________________. # Adriano dos Santos Fernandes -# +# # -firebird_plugin -fbUdrRegFunction -fbUdrRegProcedure -fbUdrRegTrigger +firebird_udr_plugin diff --git a/builds/win32/defs/udr_engine.def b/builds/win32/defs/udr_plugin.def similarity index 89% rename from builds/win32/defs/udr_engine.def rename to builds/win32/defs/udr_plugin.def index 4c0ba1cae7..074c69e531 100644 --- a/builds/win32/defs/udr_engine.def +++ b/builds/win32/defs/udr_plugin.def @@ -12,11 +12,11 @@ ; The Original Code was created by Adriano dos Santos Fernandes ; for the Firebird Open Source RDBMS project. ; -; Copyright (c) 2008 Adriano dos Santos Fernandes +; Copyright (c) 2015 Adriano dos Santos Fernandes ; and all contributors signed below. ; ; All Rights Reserved. ; Contributor(s): ______________________________________. EXPORTS - firebird_plugin + firebird_udr_plugin diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 6c488e6de6..3773f95886 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -79,6 +79,7 @@ file(GLOB udrcpp_example_src "udr/*") add_library (udrcpp_example SHARED ${udrcpp_example_src}) target_link_libraries (udrcpp_example yvalve) +set_exported_symbols (udrcpp_example udr_plugin) set_output_directory (udrcpp_example plugins/udr) project_group (udrcpp_example Examples) diff --git a/examples/udr/Functions.cpp b/examples/udr/Functions.cpp index 5c77e40bcd..434973d7ba 100644 --- a/examples/udr/Functions.cpp +++ b/examples/udr/Functions.cpp @@ -157,4 +157,5 @@ FB_UDR_END_FUNCTION // This should be used in only one of the UDR library files. +// Build must export firebird_udr_plugin function. FB_UDR_IMPLEMENT_ENTRY_POINT diff --git a/src/include/firebird/UdrCppEngine.h b/src/include/firebird/UdrCppEngine.h index 80bb1125ee..d2c1a1ee3e 100644 --- a/src/include/firebird/UdrCppEngine.h +++ b/src/include/firebird/UdrCppEngine.h @@ -31,6 +31,7 @@ #include +// Build must export firebird_udr_plugin function. #define FB_UDR_IMPLEMENT_ENTRY_POINT \ namespace Firebird \ { \