diff options
| author | Billy O'Neal <bion@microsoft.com> | 2020-10-20 16:13:43 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-20 16:13:43 -0700 |
| commit | b14aa50824c073629f1c7b44ded905a7b4bd7152 (patch) | |
| tree | 04511c685bf7bc9fa9e80cc171063be604853ab8 /ports/freetds/fix-encoding-h-dependency.patch | |
| parent | 4e3e210e8df9fa7f277804196ed6f42c8df2dda7 (diff) | |
| download | vcpkg-b14aa50824c073629f1c7b44ded905a7b4bd7152.tar.gz vcpkg-b14aa50824c073629f1c7b44ded905a7b4bd7152.zip | |
[freetds] Update to v1.2.5 and update source to github. (#14120)
Diffstat (limited to 'ports/freetds/fix-encoding-h-dependency.patch')
| -rw-r--r-- | ports/freetds/fix-encoding-h-dependency.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/ports/freetds/fix-encoding-h-dependency.patch b/ports/freetds/fix-encoding-h-dependency.patch new file mode 100644 index 000000000..7b2909fec --- /dev/null +++ b/ports/freetds/fix-encoding-h-dependency.patch @@ -0,0 +1,45 @@ +diff --git a/src/odbc/CMakeLists.txt b/src/odbc/CMakeLists.txt
+index 5d036a1..031b9a2 100644
+--- a/src/odbc/CMakeLists.txt
++++ b/src/odbc/CMakeLists.txt
+@@ -30,7 +30,7 @@ add_library(tdsodbc SHARED
+ target_compile_definitions(tdsodbc PUBLIC DLL_EXPORT=1)
+ # TODO libiconv, odbcinstlib and other dynamics
+ target_link_libraries(tdsodbc tds replacements tdsutils ${libs} ${lib_NETWORK} ${lib_BASE})
+-
++add_dependencies(tdsodbc generate_encodings_h)
+ if(MINGW OR CYGWIN)
+ set_target_properties(tdsodbc PROPERTIES LINK_FLAGS "--static -Wl,--kill-at -Wl,--enable-stdcall-fixup")
+ endif(MINGW OR CYGWIN)
+@@ -41,6 +41,7 @@ add_library(tdsodbc_static STATIC
+ native.c sql2tds.c error.c odbc_checks.c sqlwchar.c sqlwparams.h
+ odbc_export.h error_export.h odbc_data.c ${win_SRCS}
+ )
++add_dependencies(tdsodbc_static generate_encodings_h)
+ if (NOT WIN32)
+ set_target_properties(tdsodbc_static PROPERTIES POSITION_INDEPENDENT_CODE ON)
+ endif()
+diff --git a/src/tds/CMakeLists.txt b/src/tds/CMakeLists.txt
+index d8be1a0..42b6a4d 100644
+--- a/src/tds/CMakeLists.txt
++++ b/src/tds/CMakeLists.txt
+@@ -29,6 +29,8 @@ if(PERL_FOUND AND NOT EXISTS "${CMAKE_SOURCE_DIR}/configure")
+ WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR})
+ endif(PERL_FOUND AND NOT EXISTS "${CMAKE_SOURCE_DIR}/configure")
+
++add_custom_target(generate_encodings_h DEPENDS "${CMAKE_BINARY_DIR}/include/freetds/encodings.h")
++
+ if(WIN32)
+ set(add_SRCS sspi.c)
+ else(WIN32)
+@@ -44,9 +46,9 @@ add_library(tds STATIC
+ bulk.c packet.c stream.c random.c
+ sec_negotiate_gnutls.h sec_negotiate_openssl.h sec_negotiate.c gssapi.c
+ tds_willconvert.h num_limits.h tds_types.h
+- "${CMAKE_BINARY_DIR}/include/freetds/encodings.h"
+ ${add_SRCS}
+ )
++add_dependencies(tds generate_encodings_h)
+ if (NOT WIN32)
+ set_target_properties(tds PROPERTIES POSITION_INDEPENDENT_CODE ON)
+ endif()
|
