summary refs log tree commit diff
path: root/gnu/packages/databases.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2023-11-14 23:44:51 +0100
committerRicardo Wurmus <rekado@elephly.net>2023-11-14 23:46:08 +0100
commitb712e563cf362e773aa3ad031411d69339b97843 (patch)
tree403e810f5a3cad7082f1677dc1f2bdaff6e29fff /gnu/packages/databases.scm
parentbd0f2173210416e86281c1de8789e7cdab66dd57 (diff)
downloadguix-b712e563cf362e773aa3ad031411d69339b97843.tar.gz
gnu: soci: Add PIE flag.
* gnu/packages/databases.scm (soci)[arguments]: Set CMAKE_CXX_FLAGS to add
-fPIE.

Change-Id: I79527759d0d35833168f5106a9d6f372375a8ebe
Diffstat (limited to 'gnu/packages/databases.scm')
-rw-r--r--gnu/packages/databases.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 3eeee9fadf..f0ea100c3b 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -5001,7 +5001,9 @@ The drivers officially supported by @code{libdbi} are:
      `(#:configure-flags
        ;; C++11 (-DSOCI_CXX11) is OFF by default.  hyperledger-iroha needs it.
        (list "-DCMAKE_CXX_STANDARD=17"
-             "-DSOCI_LIBDIR=lib")
+             "-DSOCI_LIBDIR=lib"
+             ;; This is for relocation when linking statically
+             "-DCMAKE_CXX_FLAGS=-fPIE")
        #:tests? #f))         ; may require running database management systems
     (synopsis "C++ Database Access Library")
     (description