diff options
author | Tobias Brunner <tobias@strongswan.org> | 2013-08-30 19:33:22 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2013-08-30 19:45:51 +0200 |
commit | 10a69c32c2dd0a60facbe788b4578dd6d6d2ddd3 (patch) | |
tree | 3d79541f493d8235e9b6e6af9f70d2c7f3590244 /src/conftest | |
parent | 4e2a176229fc30cd4507b1ebeba1ea14118e88da (diff) | |
download | strongswan-10a69c32c2dd0a60facbe788b4578dd6d6d2ddd3.tar.bz2 strongswan-10a69c32c2dd0a60facbe788b4578dd6d6d2ddd3.tar.xz |
conftest: Fix hook constructor resolution via dlsym()
AM_CPPFLAGS only takes preprocessor flags like -I or -D, so it did not
forward -rdynamic to the linker (--export-dynamic), which meant that the
symbols defined in the executable itself were not resolvable via dlsym().
Fixes #394.
Diffstat (limited to 'src/conftest')
-rw-r--r-- | src/conftest/Makefile.am | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/conftest/Makefile.am b/src/conftest/Makefile.am index 2aafc7a6f..900741dbb 100644 --- a/src/conftest/Makefile.am +++ b/src/conftest/Makefile.am @@ -1,11 +1,13 @@ ipsec_PROGRAMS = conftest -AM_CPPFLAGS = -rdynamic \ +AM_CPPFLAGS = \ -I$(top_srcdir)/src/libstrongswan \ -I$(top_srcdir)/src/libhydra \ -I$(top_srcdir)/src/libcharon \ -DPLUGINS=\""${charon_plugins}\"" +AM_CFLAGS = -rdynamic + conftest_SOURCES = conftest.c conftest.h config.c config.h actions.c actions.h \ hooks/hook.h hooks/ike_auth_fill.c hooks/unsort_message.c \ hooks/add_notify.c hooks/unencrypted_notify.c hooks/ignore_message.c \ |