format patches

This commit is contained in:
openKylinBot 2022-05-14 03:24:07 +08:00
parent 9828987f48
commit 446a7df122
3 changed files with 47 additions and 20 deletions

View File

@ -1,10 +1,17 @@
Description: Use GCC Visibility From: Mathieu Malaterre <malat@debian.org>
Author: Mathieu Malaterre <malat@debian.org> Date: Sat, 14 May 2022 03:24:06 +0800
Subject: Use GCC Visibility
Forwarded: no Forwarded: no
Last-Update: 2019-01-03 Last-Update: 2019-01-03
---
src/charls.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- charls-2.0.0+dfsg.orig/src/charls.h diff --git a/src/charls.h b/src/charls.h
+++ charls-2.0.0+dfsg/src/charls.h index 66f6410..8d21352 100644
--- a/src/charls.h
+++ b/src/charls.h
@@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
// Non-windows (static linking) // Non-windows (static linking)

View File

@ -1,8 +1,16 @@
Description: Debian buildd wants to use the default c++ standard always (not hardcoded) From: Mathieu Malaterre <malat@debian.org>
Author: Mathieu Malaterre <malat@debian.org> Date: Sat, 14 May 2022 03:24:06 +0800
Subject: Debian buildd wants to use the default c++ standard always (not
hardcoded)
Forwarded: no Forwarded: no
Last-Update: 2019-01-03 Last-Update: 2019-01-03
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0af9fe3..512eb12 100644
--- a/CMakeLists.txt --- a/CMakeLists.txt
+++ b/CMakeLists.txt +++ b/CMakeLists.txt
@@ -7,7 +7,7 @@ if (CMAKE_COMPILER_IS_GNUCC) @@ -7,7 +7,7 @@ if (CMAKE_COMPILER_IS_GNUCC)

View File

@ -1,8 +1,30 @@
Description: Rework the symbol file to hide stl exported symbols From: Mathieu Malaterre <malat@debian.org>
Also add missing header Date: Sat, 14 May 2022 03:24:06 +0800
Author: Mathieu Malaterre <malat@debian.org> Subject: Rework the symbol file to hide stl exported symbols
Forwarded: no
Also add missing header
Forwarded: no
---
CMakeLists.txt | 1 +
exports.version | 9 +++++++++
2 files changed, 10 insertions(+)
create mode 100644 exports.version
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1aa40a8..0af9fe3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -46,6 +46,7 @@ set (CHARLS_LIB_MINOR_VERSION 0)
set_target_properties(CharLS PROPERTIES
VERSION ${CHARLS_LIB_MAJOR_VERSION}.${CHARLS_LIB_MINOR_VERSION}
SOVERSION ${CHARLS_LIB_MAJOR_VERSION})
+set_property(TARGET CharLS PROPERTY LINK_FLAGS "-Wl,--version-script=../exports.version")
install (TARGETS CharLS RUNTIME DESTINATION bin
LIBRARY DESTINATION lib${LIB_SUFFIX}
diff --git a/exports.version b/exports.version
new file mode 100644
index 0000000..a831478
--- /dev/null --- /dev/null
+++ b/exports.version +++ b/exports.version
@@ -0,0 +1,9 @@ @@ -0,0 +1,9 @@
@ -15,13 +37,3 @@ Forwarded: no
+local: +local:
+ *; + *;
+}; +};
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -46,6 +46,7 @@ set (CHARLS_LIB_MINOR_VERSION 0)
set_target_properties(CharLS PROPERTIES
VERSION ${CHARLS_LIB_MAJOR_VERSION}.${CHARLS_LIB_MINOR_VERSION}
SOVERSION ${CHARLS_LIB_MAJOR_VERSION})
+set_property(TARGET CharLS PROPERTY LINK_FLAGS "-Wl,--version-script=../exports.version")
install (TARGETS CharLS RUNTIME DESTINATION bin
LIBRARY DESTINATION lib${LIB_SUFFIX}