bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#42651: emacs-27.1-rc1 and wrong GnuPG libraries


From: Jeffrey Walton
Subject: bug#42651: emacs-27.1-rc1 and wrong GnuPG libraries
Date: Sat, 1 Aug 2020 11:21:23 -0400

On Sat, Aug 1, 2020 at 11:17 AM Eli Zaretskii <eliz@gnu.org> wrote:
>
> > From: Jeffrey Walton <noloader@gmail.com>
> > Date: Sat, 1 Aug 2020 11:14:25 -0400
> > Cc: 42651@debbugs.gnu.org
> >
> > On Sat, Aug 1, 2020 at 11:11 AM Eli Zaretskii <eliz@gnu.org> wrote:
> > >
> > > > From: Jeffrey Walton <noloader@gmail.com>
> > > > Date: Sat, 1 Aug 2020 11:05:00 -0400
> > > > Cc: 42651@debbugs.gnu.org
> > > >
> > > > On Sat, Aug 1, 2020 at 11:04 AM Eli Zaretskii <eliz@gnu.org> wrote:
> > > > >
> > > > > > From: Jeffrey Walton <noloader@gmail.com>
> > > > > > Date: Sat, 1 Aug 2020 10:51:54 -0400
> > > > > >
> > > > > > I was looking at the ldd dependencies of emacs-27.1-rc1. It shows a
> > > > > > dependency on GnuPG warez:
> > > > >
> > > > > Why is that a problem?
> > > >
> > > > The wrong library.
> > >
> > > Which one?
> >
> > Both libgcrypt.so and libgpg-error.so.
>
> So you would like your own libraries linked into Emacs, is that the
> issue here?  If so, I think you need to set up your build to look
> there, by setting LDFLAGS at configure time.  Would that solve the
> problem?

LDFLAGS is set. Here are the flags I use for every package I build on Linux.

 AUTOCONF_BUILD: x86_64-pc-linux-gnu
PKG_CONFIG_PATH: /usr/local/lib/pkgconfig
       CPPFLAGS: -I/usr/local/include -DNDEBUG
        ASFLAGS: -Wa,--noexecstack
         CFLAGS: -g2 -O2 -march=native -fPIC -pthread
       CXXFLAGS: -g2 -O2 -march=native -fPIC -pthread
        LDFLAGS: -L/usr/local/lib -Wl,-R,'$ORIGIN/../lib'
-Wl,-R,/usr/local/lib -Wl,--enable-new-dtags -Wl,-z,relro -Wl,-z,now
-Wl,-z,noexecstack -Wl,-z,origin
         LDLIBS: -ldl -lpthread





reply via email to

[Prev in Thread] Current Thread [Next in Thread]