]> xenbits.xensource.com Git - libvirt.git/commit
tests: Add SELINUX_LIBS to fix viridentitytest linker bug
authorJulio Faracco <jcfaracco@gmail.com>
Fri, 24 Oct 2014 12:33:52 +0000 (10:33 -0200)
committerEric Blake <eblake@redhat.com>
Fri, 24 Oct 2014 18:01:10 +0000 (12:01 -0600)
commitf2a2d0e9ab89a50d9552d2c70de0301ad2b83224
tree645a92a7fcd9fa14da4de34b47d4a9077862c315
parent22b185343db266cac4c9c6fbb309eca14054d6b6
tests: Add SELINUX_LIBS to fix viridentitytest linker bug

In a clean build system (Ubuntu 14.04), the viridentitytest failed to compile.
Even if all the SELINUX libraries and depedencies are installed. See the error
message below:

[...]
  CC       viridentitytest.o
  CCLD     viridentitytest
/usr/bin/ld: viridentitytest.o: undefined reference to symbol
                                                       'security_disable'
//lib/x86_64-linux-gnu/libselinux.so.1: error adding symbols: DSO missing
                                                           from command line
collect2: error: ld returned 1 exit status
make: *** [viridentitytest] Error 1

Simply adding the variable SELINUX_LIBS in viridentitytest rules of
Makefile.am to include SELINUX libraries into viridentitytest solved that
compilation issue.

Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
tests/Makefile.am