From: Pavel TvrdĂ­k Date: Wed, 7 Oct 2015 13:49:07 +0000 (+0200) Subject: RPKI: add -ldl for bird compile for dlopen() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52ea2303cf3ccb17cf981a89942fa8db1048cee4;p=thirdparty%2Fbird.git RPKI: add -ldl for bird compile for dlopen() --- diff --git a/configure.in b/configure.in index 41838d3b7..d59fa9cc3 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 01bb7a7c1..01aca1cf5 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 f00c85d1e..68409b9df 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@