我正在尝试为 ARM 交叉编译 systemd-213 并且在configure
checking for library containing dlsym... -ldl
checking sys/capability.h usability... yes
checking sys/capability.h presence... yes
checking for sys/capability.h... yes
checking linux/btrfs.h usability... no
checking linux/btrfs.h presence... no
checking for linux/btrfs.h... no
checking for library containing clock_gettime... -lrt
checking for library containing cap_init... no
configure: error: *** POSIX caps library not found
我已经交叉编译了 libcap 并将包含生成的库的目录添加到使用LDFLAGS
之前调用.-L
echo $LDFLAGS
configure
错误来自以下行configure.ac
AC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])])
我检查了 libcap.a 和 libcap.soobjdump -t
并找到了 cap_init 的条目
00000108 g F .text 000000b4 cap_init <- libcap.a
00001240 g F .text 000000b4 cap_init <- libcap.so
我对 autoconf 没有太多经验,但我不明白为什么cap_init
找不到。
我想我已经发布了相关信息,但如果需要我可以提供更多信息。