Page MenuHome GnuPG

Can't compile libgcrypt with some configure options
Closed, ResolvedPublic

Description

I can't compile libgcrypt with some configure options. It results in:

./.libs/libgcrypt.so: undefined reference to `_gcry_hwf_detect_x86'
./.libs/libgcrypt.so: undefined reference to `_gcry_digest_spec_tiger2'
./.libs/libgcrypt.so: undefined reference to `_gcry_digest_spec_tiger'
./.libs/libgcrypt.so: undefined reference to `_gcry_digest_spec_tiger1'

Here's how configure was started:

$ export LDFLAGS="-Wl,--exclude-libs,all"
$ export PREFIX=/usr/local
$ cd libgcrypt-1.6.3/
$ ./configure --disable-static --enable-shared --disable-random-daemon --with-
libgpg-error-prefix="$PREFIX" --with-pth-prefix="$PREFIX" --prefix="$PREFIX"
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
...

I know export LDFLAGS="-Wl,--exclude-libs,all" is a hack, but I could not
configure without the -Wl. Perhaps that's a Autotools bug.

Details

Version
1.6.3

Event Timeline

JW set Version to 1.6.3.
JW added a subscriber: JW.

It appears --disable-static is the culprit.

Changed status to 'unread'. I'm not chatting.

werner claimed this task.