Commit 1d8b5706 authored by Vladimír Čunát's avatar Vladimír Čunát

make: add -rpath when linking to find libkres

... even if LIBDIR isn't on a standard place.
parent 7ca53bc4
Pipeline #11251 canceled with stages
in 33 seconds
......@@ -28,7 +28,7 @@ XXD_LUA := ./scripts/
INSTALL := install
# Flags
BUILD_CFLAGS := $(CFLAGS) -std=c99 -D_GNU_SOURCE -Wno-unused -Wtype-limits -Wformat -Wformat-security -Wall -I$(abspath .) -I$(abspath lib/generic) -I$(abspath contrib) -I$(abspath contrib/lmdb)
ifeq (,$(findstring -O,$(CFLAGS)))
......@@ -125,12 +125,6 @@ When you have all the dependencies ready, you can build and install.
Production code should be compiled with ``-DNDEBUG``.
If you build the binary with ``-DNOVERBOSELOG``, it won't be possible to turn on verbose logging; we advise packagers against using that flag.
.. note:: If you build with ``PREFIX``, you may need to also set the ``LDFLAGS`` for the libraries:
.. code-block:: bash
make LDFLAGS="-Wl,-rpath=/usr/local/lib" PREFIX="/usr/local"
Alternatively you can build only specific parts of the project, i.e. ``library``.
.. code-block:: bash
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment