Commit 52ea2303 authored by Pavel Tvrdík's avatar Pavel Tvrdík
Browse files

RPKI: add -ldl for bird compile for dlopen()

parent 80468466
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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
+2 −2
Original line number Diff line number Diff line
@@ -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)
+1 −0
Original line number Diff line number Diff line
@@ -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@