gnu: soci: Add PIE flag.
* gnu/packages/databases.scm (soci)[arguments]: Set CMAKE_CXX_FLAGS to add -fPIE. Change-Id: I79527759d0d35833168f5106a9d6f372375a8ebe
This commit is contained in:
parent
bd0f217321
commit
b712e563cf
@ -5001,7 +5001,9 @@ The drivers officially supported by @code{libdbi} are:
|
|||||||
`(#:configure-flags
|
`(#:configure-flags
|
||||||
;; C++11 (-DSOCI_CXX11) is OFF by default. hyperledger-iroha needs it.
|
;; C++11 (-DSOCI_CXX11) is OFF by default. hyperledger-iroha needs it.
|
||||||
(list "-DCMAKE_CXX_STANDARD=17"
|
(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
|
#:tests? #f)) ; may require running database management systems
|
||||||
(synopsis "C++ Database Access Library")
|
(synopsis "C++ Database Access Library")
|
||||||
(description
|
(description
|
||||||
|
Loading…
Reference in New Issue
Block a user