From 4021ad436d7ed8127623e4bbf1973aa64b68d2bb Mon Sep 17 00:00:00 2001 From: vertiond <35286924+vertiond@users.noreply.github.com> Date: Sun, 26 Dec 2021 14:09:32 -0600 Subject: [PATCH] guix: add -fPIC to linux CXXFLAGS see issue #166 --- contrib/guix/libexec/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/guix/libexec/build.sh b/contrib/guix/libexec/build.sh index e0bb8b0624..809c2571fc 100644 --- a/contrib/guix/libexec/build.sh +++ b/contrib/guix/libexec/build.sh @@ -174,7 +174,7 @@ esac # CFLAGS HOST_CFLAGS="-O2 -g" case "$HOST" in - *linux*) HOST_CFLAGS+=" -ffile-prefix-map=${PWD}=." ;; + *linux*) HOST_CFLAGS+=" -ffile-prefix-map=${PWD}=. -fPIC" ;; *mingw*) HOST_CFLAGS+=" -fno-ident" ;; esac