Debian Codegraph @

debian/patches/0002-C-symbols-map.patch

raw symbols SCIP
1 Fromscip-debian debian libphonenumber 8.13.51+ds-6 libphonenumber/patches/`0002-C-symbols-map.patch`#From.: Daniel Pocock <[email protected]scip-debian . . . identity/`[email protected]`.>
2 Datescip-debian debian libphonenumber 8.13.51+ds-6 libphonenumber/patches/`0002-C-symbols-map.patch`#Date.: Thu, 24 Sep 2015 07:59:29 +0200
3 Subjectscip-debian debian libphonenumber 8.13.51+ds-6 libphonenumber/patches/`0002-C-symbols-map.patch`#Subject.: [PATCH] C++ symbols map
4
5 https://github.com/googlei18n/libphonenumber/pull/831
6 ---
7 cpp/CMakeLists.txt | 6 ++++++
8 cpp/symbols.map | 15 +++++++++++++++
9 2 files changed, 21 insertions(+)
10 create mode 100644 cpp/symbols.map
11
12 diff --git a/cpp/CMakeLists.txtscip-debian debian libphonenumber 8.13.51+ds-6 libphonenumber/upstream/`cpp/CMakeLists.txt`: b/cpp/CMakeLists.txtscip-debian debian libphonenumber 8.13.51+ds-6 libphonenumber/upstream/`cpp/CMakeLists.txt`:
13 index 96def5c..dace838 100644
14 --- a/cpp/CMakeLists.txt
15 +++ b/cpp/CMakeLists.txt
16 @@ -282,6 +282,8 @@ set (
17 "src/phonenumbers/utf/unilib.cc"
18 )
19
20 +set(symbol_map "${CMAKE_SOURCE_DIR}/symbols.map")
21 +
22 if (BUILD_GEOCODER)
23 set (
24 GEOCODING_SOURCES
25 @@ -486,6 +488,8 @@ if (BUILD_SHARED_LIBS)
26 PREFIX "lib"
27 SOVERSION ${libphonenumber_VERSION_MAJOR}
28 VERSION ${libphonenumber_VERSION_MAJOR}.${libphonenumber_VERSION_MINOR})
29 + set_target_properties(phonenumber-shared PROPERTIES LINK_FLAGS "${ldflags} -Wl,--version-script,${symbol_map}")
30 + set_target_properties(phonenumber-shared PROPERTIES LINK_DEPENDS ${symbol_map})
31
32 if (USE_ICU_REGEXP AND USE_ALTERNATE_FORMATS)
33 add_dependencies (phonenumber-shared ${ALT_FORMAT_METADATA_TARGET})
34 @@ -504,6 +508,8 @@ if (BUILD_SHARED_LIBS)
35 PREFIX "lib"
36 SOVERSION ${libphonenumber_VERSION_MAJOR}
37 VERSION ${libphonenumber_VERSION_MAJOR}.${libphonenumber_VERSION_MINOR})
38 + set_target_properties(geocoding-shared PROPERTIES LINK_FLAGS "${ldflags} -Wl,--version-script,${symbol_map}")
39 + set_target_properties(geocoding-shared PROPERTIES LINK_DEPENDS ${symbol_map})
40 endif ()
41 endif ()
42
43 diff --git a/cpp/symbols.map b/cpp/symbols.mapscip-debian debian libphonenumber 8.13.51+ds-6 libphonenumber/upstream/`cpp/symbols.map`:
44 new file mode 100644
45 index 0000000..5fd0f0b
46 --- /dev/nullscip-debian debian libphonenumber 8.13.51+ds-6 libphonenumber/upstream/`/dev/null`:
47 +++ b/cpp/symbols.map
48 @@ -0,0 +1,15 @@
49 +{
50 +global:
51 + extern "C++" {
52 + i18n::phonenumbers::*;
53 + typeinfo?for?i18n::phonenumbers::*;
54 + typeinfo?name?for?i18n::phonenumbers::*;
55 + VTT?for?i18n::phonenumbers::*;
56 + virtual?thunk?to?i18n::phonenumbers::*;
57 + vtable?for?i18n::phonenumbers::*;
58 + };
59 +local:
60 + extern "C++" {
61 + *;
62 + };
63 +};