Skip to content

Commit 14e6920

Browse files
committed
configure.ac: add -ldl as JACK lib
dlopen + family is used so ensure that -ldl is used this fixes currently failing ARM CI builds
1 parent e2941cc commit 14e6920

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

configure.ac

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2745,9 +2745,14 @@ if test $jack_trans_req != no || test $jack_req != no; then
27452745
AC_CHECK_HEADER(jack/jack.h, FOUND_JACK_H=yes, FOUND_JACK_H=no)
27462746
fi
27472747

2748+
if test "${system?}" != Windows; then
2749+
JACK_LIBS=-ldl
2750+
fi
2751+
27482752
if test "${jack_trans_req?}" != no && test "${FOUND_JACK_H?}" = yes
27492753
then
27502754
OBJS="$OBJS src/audio/jack.o"
2755+
LIBS="$LIBS${JACK_LIBS:+ $JACK_LIBS}"
27512756
AC_DEFINE([HAVE_JACK_TRANS], [1], [Build with JACK transport support])
27522757
jack_trans=yes
27532758
fi
@@ -2757,8 +2762,8 @@ then
27572762
JACK_CAP_OBJ="src/audio/capture/jack.o"
27582763
JACK_PLAY_OBJ="src/audio/playback/jack.o"
27592764
jack=yes
2760-
add_module acap_jack "$JACK_CAP_OBJ"
2761-
add_module aplay_jack "$JACK_PLAY_OBJ"
2765+
add_module acap_jack "$JACK_CAP_OBJ" "${JACK_LIBS-}"
2766+
add_module aplay_jack "$JACK_PLAY_OBJ" "${JACK_LIBS-}"
27622767
fi
27632768

27642769
ENSURE_FEATURE_PRESENT([$jack_req], [$jack], [JACK not found])

0 commit comments

Comments
 (0)