Skip to content

Commit 8388974

Browse files
daniellukeFelipe Zimmerle
authored andcommitted
Include apr-util's LDFLAGS
Using apr-util installed by Macports results in build failure because apr-util uses BerkeleyDB that MacPorts installs into a subdir of $prefix/lib and $prefix/include (so that multiple versions of BerkeleyDB can be installed simultaneously). apu-1-config's --ldflags output includes the -L/path/to/bdb that's needed.
1 parent 48baf3d commit 8388974

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build/find_apu.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ if test -n "${apu_path}"; then
5858
if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(apu VERSION: $APU_VERSION); fi
5959
APU_CFLAGS="`${APU_CONFIG} --includes`"
6060
if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(apu CFLAGS: $APU_CFLAGS); fi
61-
APU_LDFLAGS="`${APU_CONFIG} --libs`"
61+
APU_LDFLAGS="`${APU_CONFIG} --ldflags`"
62+
APU_LDFLAGS="$APU_LDFLAGS `${APU_CONFIG} --libs`"
6263
if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(apu LDFLAGS: $APU_LDFLAGS); fi
6364
APU_LDADD="`${APU_CONFIG} --link-libtool`"
6465
if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(apu LDADD: $APU_LDADD); fi

0 commit comments

Comments
 (0)