Restrict the list of exported symbols to sk_*.
Michael Biebl
14 years ago
0 | 0 |
libatasmart (0.17-1) UNRELEASED; urgency=low
|
1 | 1 |
|
2 | 2 |
* New upstream release.
|
|
3 |
* debian/patches/01-export-symbols.patch
|
|
4 |
- Restrict the list of exported symbols to sk_*.
|
3 | 5 |
|
4 | 6 |
-- Michael Biebl <biebl@debian.org> Tue, 27 Oct 2009 04:32:15 +0100
|
5 | 7 |
|
|
0 |
Description: Restrict the list of exported symbols to sk_.*
|
|
1 |
Use libtools' -export-symbols-regex to restrict the list of exported symbols
|
|
2 |
so we not accidentally export symbols like init_smart
|
|
3 |
Author: Michael Biebl <biebl@debian.org>
|
|
4 |
diff --git a/Makefile.am b/Makefile.am
|
|
5 |
index 381e920..b5f9476 100644
|
|
6 |
--- a/Makefile.am
|
|
7 |
+++ b/Makefile.am
|
|
8 |
@@ -83,7 +83,8 @@ sktest_LDADD = \
|
|
9 |
libatasmart_la_SOURCES = \
|
|
10 |
atasmart.strpool.c atasmart.h
|
|
11 |
libatasmart_la_LDFLAGS = \
|
|
12 |
- -version-info $(LIBATASMART_VERSION_INFO)
|
|
13 |
+ -version-info $(LIBATASMART_VERSION_INFO) \
|
|
14 |
+ -export-symbols-regex '(^sk_.*)'
|
|
15 |
libatasmart_la_LIBADD = \
|
|
16 |
$(LIBUDEV_LIBS)
|
|
17 |
libatasmart_la_CFLAGS = \
|
|
0 |
01-export-symbols.patch
|