From e0f11780797f6ddee5bdfd965c7f499e8810c2b4 Mon Sep 17 00:00:00 2001 From: David Leverton Date: Sun, 31 Jan 2016 22:42:43 +0000 Subject: Avoid PIC errors ld: .libs/persona.o: relocation R_X86_64_PC32 against undefined symbol `_ZN12_GLOBAL__N_128SystemConfigurationParameterILj70EE8SpellingE' can not be used when making a shared object; recompile with -fPIC --- paludis/util/persona.cc | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/paludis/util/persona.cc b/paludis/util/persona.cc index 3964356cf..5f051c159 100644 --- a/paludis/util/persona.cc +++ b/paludis/util/persona.cc @@ -29,17 +29,16 @@ namespace { template - struct SystemConfigurationParameter; + struct SystemConfigurationParameter + { + static const char * const Spelling; + }; template <> - struct SystemConfigurationParameter<_SC_GETPW_R_SIZE_MAX> { - static constexpr const char * const Spelling = "_SC_GETPW_R_SIZE_MAX"; - }; + const char * const SystemConfigurationParameter<_SC_GETPW_R_SIZE_MAX>::Spelling = "_SC_GETPW_R_SIZE_MAX"; template <> - struct SystemConfigurationParameter<_SC_GETGR_R_SIZE_MAX> { - static constexpr const char * const Spelling = "_SC_GETGR_R_SIZE_MAX"; - }; + const char * const SystemConfigurationParameter<_SC_GETGR_R_SIZE_MAX>::Spelling = "_SC_GETGR_R_SIZE_MAX"; template size_t initial_buffer_size(const char *context) -- cgit v1.2.3