From 52ea2303cf3ccb17cf981a89942fa8db1048cee4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Tvrd=C3=ADk?= Date: Wed, 7 Oct 2015 15:49:07 +0200 Subject: [PATCH] RPKI: add -ldl for bird compile for dlopen() --- configure.in | 4 ++++ tools/Makefile.in | 4 ++-- tools/Rules.in | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 41838d3b..d59fa9cc 100644 --- a/configure.in +++ b/configure.in @@ -262,6 +262,10 @@ if test "$enable_debug" = yes ; then fi fi +BIRD_LIBS= +AC_CHECK_LIB(dl, dlopen, BIRD_LIBS="-ldl") +AC_SUBST(BIRD_LIBS) + CLIENT= CLIENT_LIBS= if test "$enable_client" = yes ; then diff --git a/tools/Makefile.in b/tools/Makefile.in index 01bb7a7c..01aca1cf 100644 --- a/tools/Makefile.in +++ b/tools/Makefile.in @@ -37,8 +37,8 @@ subdir: sysdep/paths.h .dir-stamp .dep-stamp set -e ; for a in $(static-dirs) $(client-dirs) ; do $(MAKE) -C $$a -f $(srcdir_abs)/$$a/Makefile $@ ; done $(exedir)/bird: $(bird-dep) - @echo LD $(LDFLAGS) -o $@ $^ $(LIBS) - @$(CC) $(LDFLAGS) -o $@ $^ $(LIBS) + @echo LD $(LDFLAGS) -o $@ $^ $(LIBS) $(BIRD_LIBS) + @$(CC) $(LDFLAGS) -o $@ $^ $(LIBS) $(BIRD_LIBS) $(exedir)/birdc: $(birdc-dep) @echo LD $(LDFLAGS) -o $@ $^ $(LIBS) $(CLIENT_LIBS) diff --git a/tools/Rules.in b/tools/Rules.in index f00c85d1..68409b9d 100644 --- a/tools/Rules.in +++ b/tools/Rules.in @@ -23,6 +23,7 @@ CPPFLAGS=-I$(root-rel) -I$(srcdir) @CPPFLAGS@ CFLAGS=$(CPPFLAGS) @CFLAGS@ LDFLAGS=@LDFLAGS@ LIBS=@LIBS@ +BIRD_LIBS=@BIRD_LIBS@ CLIENT_LIBS=@CLIENT_LIBS@ CC=@CC@ M4=@M4@