From: John Kehayias via Guix-patches via <guix-patches@gnu.org>
To: "53015@debbugs.gnu.org" <53015@debbugs.gnu.org>
Subject: [bug#53015] [PATCH 2/4] gnu: spdlog: Build with '-fpic'.
Date: Tue, 04 Jan 2022 22:24:33 +0000 [thread overview]
Message-ID: <WKX-vcLj5jIxkk1xGaGz3gMBXCW-J0fOc9kOgQ0YJiqfOIp2cqFcK7Z70081d9aqNeWbRFvlLUa6mEmc6IAdHKc3ALz9zwONM44Ehu12CKA=@protonmail.com> (raw)
In-Reply-To: <Q7tnT9BK6ONvH70UZEXzlqJR968TW3cdJCw99_OCDwa0EHxp7k0YTRLa0XHOHsCsR6bMjuJdzqWOfuuilwIRolVj5mNo148mDaUwJtZ1hE8=@protonmail.com>
[-- Attachment #1: Type: text/plain, Size: 13 bytes --]
Empty Message
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0002-gnu-spdlog-Build-with-fpic.patch --]
[-- Type: text/x-patch; name=0002-gnu-spdlog-Build-with-fpic.patch, Size: 1504 bytes --]
From 79f30cf17e88ca50fd8444f1ad34ceb795b1d255 Mon Sep 17 00:00:00 2001
From: John Kehayias <john.kehayias@protonmail.com>
Date: Tue, 4 Jan 2022 16:41:48 -0500
Subject: [PATCH 2/4] gnu: spdlog: Build with '-fpic'.
* gnu/packages/logging.scm (spdlog)[arguments]: Add "-DCMAKE_CXX_FLAGS=-fpic"
to #:configure-flags.
---
gnu/packages/logging.scm | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/logging.scm b/gnu/packages/logging.scm
index be144e2daa..3c8f67b3ce 100644
--- a/gnu/packages/logging.scm
+++ b/gnu/packages/logging.scm
@@ -8,6 +8,7 @@
;;; Copyright © 2019 Meiyo Peng <meiyo@riseup.net>
;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
+;;; Copyright © 2022 John Kehayias <john.kehayias@protonmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -207,7 +208,11 @@ (define-public spdlog
;; (gnu packages benchmark) forms a dependency cycle
(arguments
'(#:configure-flags
- (list "-DSPDLOG_BUILD_BENCH=OFF"
+ ;; Typically this library is meant to be compiled statically, see
+ ;; https://github.com/gabime/spdlog/wiki/How-to-use-spdlog-in-DLLs
+ ;; So build with -fpic to allow linking in shared libraries.
+ (list "-DCMAKE_CXX_FLAGS=-fpic"
+ "-DSPDLOG_BUILD_BENCH=OFF"
"-DSPDLOG_BUILD_TESTS=ON")))
(home-page "https://github.com/gabime/spdlog")
(synopsis "Fast C++ logging library")
--
2.34.0
next prev parent reply other threads:[~2022-01-04 22:25 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-04 22:20 [bug#53015] [PATCH 0/4] Add mangohud (update dear-imgui) John Kehayias via Guix-patches via
2022-01-04 22:23 ` [bug#53015] [PATCH 1/4] gnu: Add pciutils-no-zlib John Kehayias via Guix-patches via
2022-01-04 22:24 ` John Kehayias via Guix-patches via [this message]
2022-01-22 5:06 ` [bug#53015] [PATCH 2/4] gnu: spdlog: Build with '-fpic' John Kehayias via Guix-patches via
2022-02-21 4:11 ` [bug#53015] [PATCH 0/4] Add mangohud (update dear-imgui) Maxim Cournoyer
2022-02-21 16:36 ` John Kehayias via Guix-patches via
2022-02-21 17:31 ` Maxim Cournoyer
2022-01-04 22:25 ` [bug#53015] [PATCH 3/4] gnu: dear-imgui: Update to 1.81, hide version 1.79 John Kehayias via Guix-patches via
2022-01-04 22:34 ` [bug#53015] [PATCH 4/4] gnu: Add mangohud John Kehayias via Guix-patches via
2022-02-16 1:48 ` [bug#53015] [PATCH 0/4] Add mangohud (update dear-imgui) John Kehayias via Guix-patches via
2022-02-23 22:35 ` [bug#53015] [PATCH v2] Add mangohud John Kehayias via Guix-patches via
2022-02-27 1:14 ` [bug#53015] [PATCH v3] " John Kehayias via Guix-patches via
2022-02-27 2:31 ` Maxim Cournoyer
2022-02-27 4:31 ` John Kehayias via Guix-patches via
2022-03-02 1:37 ` [bug#53015] [PATCH 0/4] Add mangohud (update dear-imgui) Brendan Tildesley
2022-03-02 4:54 ` John Kehayias via Guix-patches via
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='WKX-vcLj5jIxkk1xGaGz3gMBXCW-J0fOc9kOgQ0YJiqfOIp2cqFcK7Z70081d9aqNeWbRFvlLUa6mEmc6IAdHKc3ALz9zwONM44Ehu12CKA=@protonmail.com' \
--to=guix-patches@gnu.org \
--cc=53015@debbugs.gnu.org \
--cc=john.kehayias@protonmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.