[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: runpath for X11 in autotools?
From: |
Christian Grothoff |
Subject: |
Re: runpath for X11 in autotools? |
Date: |
Thu, 21 Nov 2019 19:48:41 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
Hi ng0,
None of this was required on Debian GNU/Linux before: gnunet-qr works
fine without any of your (IMO inappropriate) recent changes to
configure.ac.
You linking gnunet-qr directly against libX11 and other dependencies is
_wrong_. gnunet-qr does not directly use those other dependencies, so it
must not link against those directly. If it does not work without those
linker flags, I would investigate whether your libzbar was linked
correctly -- maybe libzbar was build badly?
Run "ldd -r $PATH_TO_LIBZBAR.so". On a proper system, it should show
all required dependencies and no missing symbols. If it shows missing
symbols, than libzbar was linked incorrectly.
Happy hacking!
Christian
On 11/21/19 6:26 PM, ng0 wrote:
> Hi,
>
> with my next commit this is required for me on a system without
> /etc/ld.so.conf to make gnunet-qr link correctly (or rather execute):
>
> make clean-recursive ; ./bootstrap ; LDFLAGS="-L/usr/pkg/lib -L/usr/X11R7/lib
> -Wl,-R/usr/X11R7/lib" CFLAGS="-g -O0" ./configure --prefix=/home/ng0/gnunet
> --enable-logging=verbose
> --with-jansson=/usr/pkg --with-zbar=/usr/pkg --with-sm=/usr/X11R7/
>
> is the portable way for autotools for one binary to add this to the LDFLADS
> in the Makefile.am
> in the src/util directory, or how is this handled?
>
signature.asc
Description: OpenPGP digital signature