Commit b537a6f
committed
Hide all driver private symbols from runtime library
Use GCC visibility pragma to hide all driver private symbols which should
not be exported to other runtime libraries. This GCC visibility pragma is
supported since GCC 4.1.0.
All non-static functions and variables in C sources of DBD::MariaDB would
not be visible or exported to other runtime libraries.
This fixes problem when two or more DBI drivers (probably DBD::mysql)
export same function symbol as DBD::MariaDB. It could cause unexpected
behavior when more DBI drivers are used by Perl applications as correct
function symbol for driver does not have to be loaded.1 parent e810631 commit b537a6f
2 files changed
+15
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
18 | 28 | | |
19 | 29 | | |
20 | 30 | | |
| |||
1364 | 1374 | | |
1365 | 1375 | | |
1366 | 1376 | | |
1367 | | - | |
1368 | | - | |
1369 | | - | |
1370 | | - | |
1371 | | - | |
1372 | 1377 | | |
1373 | 1378 | | |
1374 | 1379 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
19 | 24 | | |
20 | 25 | | |
21 | 26 | | |
| |||
0 commit comments