From 7b6e527f440cd7e6f8be2b07cee320ee6ca18786 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 29 Apr 2024 06:41:38 +0200 Subject: Adding upstream version 1.0.1. Signed-off-by: Daniel Baumann --- test cases/linuxlike/4 extdep static lib/lib.c | 8 ++++++++ test cases/linuxlike/4 extdep static lib/meson.build | 10 ++++++++++ test cases/linuxlike/4 extdep static lib/prog.c | 5 +++++ 3 files changed, 23 insertions(+) create mode 100644 test cases/linuxlike/4 extdep static lib/lib.c create mode 100644 test cases/linuxlike/4 extdep static lib/meson.build create mode 100644 test cases/linuxlike/4 extdep static lib/prog.c (limited to 'test cases/linuxlike/4 extdep static lib') diff --git a/test cases/linuxlike/4 extdep static lib/lib.c b/test cases/linuxlike/4 extdep static lib/lib.c new file mode 100644 index 0000000..bbda9aa --- /dev/null +++ b/test cases/linuxlike/4 extdep static lib/lib.c @@ -0,0 +1,8 @@ +#include + +int statlibfunc(void) { + void * something = deflate; + if(something != 0) + return 0; + return 1; +} diff --git a/test cases/linuxlike/4 extdep static lib/meson.build b/test cases/linuxlike/4 extdep static lib/meson.build new file mode 100644 index 0000000..1a73e49 --- /dev/null +++ b/test cases/linuxlike/4 extdep static lib/meson.build @@ -0,0 +1,10 @@ +project('external dependency with static', 'c') + +# Zlib is probably on all dev machines. + +dep = dependency('zlib') +statlib = static_library('statlib', 'lib.c', dependencies : dep) +exe = executable('prog', 'prog.c', link_with : statlib) + + +test('zlibtest', exe) diff --git a/test cases/linuxlike/4 extdep static lib/prog.c b/test cases/linuxlike/4 extdep static lib/prog.c new file mode 100644 index 0000000..0aeb827 --- /dev/null +++ b/test cases/linuxlike/4 extdep static lib/prog.c @@ -0,0 +1,5 @@ +int statlibfunc(void); + +int main(void) { + return statlibfunc(); +} -- cgit v1.2.3