Page MenuHome GnuPG

libassuan CFLAGS/LDFLAGS not used
Closed, ResolvedPublic


gcc -DHAVE_CONFIG_H -I. -I.. -I../common -DLOCALEDIR=\"/usr/share/locale\"
-DGNUPG_BINDIR="\"/usr/bin\"" -DGNUPG_LIBEXECDIR="\"/usr/libexec\""
-DGNUPG_LIBDIR="\"/usr/lib64/gnupg\"" -DGNUPG_DATADIR="\"/usr/share/gnupg\""
-DWITHOUT_NPTH=1 -I/usr/include/p11-kit-1 -O3 -Wall -Wcast-align -Wshadow
-Wstrict-prototypes -Wformat -Wno-format-y2k -Wformat-security -W
-Wno-sign-compare -Wno-missing-field-initializers -Wdeclaration-after-statement
-Wno-pointer-sign -Wpointer-arith -O2 -g -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
--param=ssp-buffer-size=4 -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -c -o
t_http-t-http.o test -f 't-http.c' || echo './'t-http.c
t-http.c:39:20: fatal error: assuan.h: No such file or directory
#include <assuan.h>


looks like is just checking if lib exists, nothing more.

There is actually m4 macro for doing things:
dnl Test for libassuan and define LIBASSUAN_CFLAGS and LIBASSUAN_LIBS

Event Timeline

werner renamed this task from liassuan CFLAGS/LDFLAGS not used to libassuan CFLAGS/LDFLAGS not used.Aug 2 2016, 7:05 PM
werner added a project: libassuan.

I'm still hitting this on Fedora. The patch is simple and was posted on the mailing list but apparently not incorporated into git:

Thanks for the reminder. Fixed.
Note that LIBASSUAN_LIBS is not needed because it is already part of t_common_ldadd.

Confirmed that it now compiles ok on Fedora, thanks.