This reverts commits
89ebf5293 and
1d8b5706cd.
I didn't realize that setting rpath is considered bad practice by most
distributions. I'm really "spoiled" by nix(pkgs/os).
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
SOVER = $(if $(1), -compatibility_version $(2) -current_version $(1),)
else
PLATFORM := POSIX
- LDFLAGS += -pthread -lm -Wl,-E "-Wl,-rpath=$(LIBDIR)"
+ LDFLAGS += -pthread -lm -Wl,-E
# ELF hardening options
ifneq ($(HARDENING),no)
BINFLAGS += -pie