Tue, Apr 10, 2018 at 03:54:02PM CEST, tredaelli(a)redhat.com wrote:
Currently since CFLAGS are dropped if you have LDFLAGS=-pie (default
on RHEL)
the rtnl_link_get_phys_port_id, rtnl_link_set_carrier and rtnl_link_get_carrier
tests always fails:
/usr/bin/ld: /tmp/ccv5GdFD.o: relocation R_X86_64_PC32 against undefined symbol
`rtnl_link_get_carrier@@libnl_3' can not be used when making a shared object;
recompile with -fPIC
This commits empty LDFLAGS before launching the 3 tests and restores it
after the tests.
Signed-off-by: Timothy Redaelli <tredaelli(a)redhat.com>
applied. Thanks