diff options
| author | David Seifert <soap@gentoo.org> | 2018-03-19 08:16:25 -0700 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-03-19 23:37:14 +0200 |
| commit | 7eb187c5f2cf55c6d441db08a87bac02cb58a9dc (patch) | |
| tree | 57d824083ff7a54fc08752b4574b23bcb8853ed3 /test cases/common/183 as-needed/libB.cpp | |
| parent | 50c66f1f5c099cb1286dab8a646bed55f39d1e3e (diff) | |
| download | meson-7eb187c5f2cf55c6d441db08a87bac02cb58a9dc.tar.gz | |
Add -Wl,-dead_strip_dylibs support
* `-Wl,-dead_strip_dylibs` is the analogue
of `-Wl,--as-needed` on macOS.
Diffstat (limited to 'test cases/common/183 as-needed/libB.cpp')
| -rw-r--r-- | test cases/common/183 as-needed/libB.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test cases/common/183 as-needed/libB.cpp b/test cases/common/183 as-needed/libB.cpp new file mode 100644 index 000000000..a8723941b --- /dev/null +++ b/test cases/common/183 as-needed/libB.cpp @@ -0,0 +1,19 @@ +#include "libA.h" + +#undef DLL_PUBLIC +#define BUILDING_DLL +#include "config.h" + +namespace meson_test_as_needed { + namespace { + bool set_linked() { + linked = true; + return true; + } + bool stub = set_linked(); + } + + DLL_PUBLIC int libB_unused_func() { + return 0; + } +} |
