pull/15/head
parent
1c0a735e00
commit
3ed22fcc56
4 changed files with 27 additions and 0 deletions
@ -0,0 +1,8 @@ |
||||
#include<zlib.h> |
||||
|
||||
int statlibfunc() { |
||||
void * something = deflate; |
||||
if(something != 0) |
||||
return 0; |
||||
return 1; |
||||
} |
@ -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) |
@ -0,0 +1,5 @@ |
||||
int statlibfunc(); |
||||
|
||||
int main(int argc, char **argv) { |
||||
return statlibfunc(); |
||||
} |
Loading…
Reference in new issue