WAF: Fix detection of linker features
authorLukas Slebodnik <lslebodn@redhat.com>
Tue, 6 Dec 2016 17:07:36 +0000 (18:07 +0100)
committerRalph Boehme <slow@samba.org>
Mon, 2 Jan 2017 13:12:27 +0000 (14:12 +0100)
commitf4c0a750d4adebcf2342a44e85f04526c34268c8
treebb98e1be8ce75f0677927c3e465bd1038b68959a
parentb7ae41e6ca133e08f1dc62bd49436f51f490f46b
WAF: Fix detection of linker features

Following check of linker feature failed with strict CFLAGS
"-Werrorr=implicit-function-declaration -Werror=implicit-int"

  Checking for rpath library support       : not found
  Checking for -Wl,--version-script support  : not found

../main.c: In function ‘main’:
../main.c:1:26: error: implicit declaration of function ‘lib_func’
    [-Werror=implicit-function-declaration]
 int main(void) {return !(lib_func() == 42);}
                          ^~~~~~~~

Signed-off-by: Lukas Slebodnik <lslebodn@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
buildtools/wafsamba/samba_conftests.py