tests: Add -rdynamic to fix TNC IMV/IMC loading on some platforms

The example IMV and IMC used for TNC testing has references to
wpa_printf and other functions from hostapd/wpa_supplicant. Link the
binaries in a way that allows these symbols to be resolved while loading
the libraries at run time.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2014-05-21 14:56:34 +03:00 committed by Jouni Malinen
parent 46fcf474ff
commit 3ba5cb29af
2 changed files with 2 additions and 0 deletions

View file

@ -30,6 +30,7 @@ CONFIG_EAP_FAST=y
CONFIG_EAP_IKEV2=y CONFIG_EAP_IKEV2=y
CONFIG_EAP_TNC=y CONFIG_EAP_TNC=y
CFLAGS += -DTNC_CONFIG_FILE=\"tnc/tnc_config\" CFLAGS += -DTNC_CONFIG_FILE=\"tnc/tnc_config\"
LIBS += -rdynamic
CONFIG_EAP_UNAUTH_TLS=y CONFIG_EAP_UNAUTH_TLS=y
ifeq ($(CONFIG_TLS), openssl) ifeq ($(CONFIG_TLS), openssl)
CONFIG_EAP_PWD=y CONFIG_EAP_PWD=y

View file

@ -28,6 +28,7 @@ CONFIG_EAP_GPSK_SHA256=y
CONFIG_EAP_EKE=y CONFIG_EAP_EKE=y
CONFIG_EAP_TNC=y CONFIG_EAP_TNC=y
CFLAGS += -DTNC_CONFIG_FILE=\"tnc/tnc_config\" CFLAGS += -DTNC_CONFIG_FILE=\"tnc/tnc_config\"
LIBS += -rdynamic
CONFIG_EAP_FAST=y CONFIG_EAP_FAST=y
CONFIG_EAP_IKEV2=y CONFIG_EAP_IKEV2=y