From 3503e9bbe85464851789f71d7b208d623d3f2b2c Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 6 Sep 2019 21:50:13 +0100 Subject: [PATCH] libguestfs: Add -fPIC to CFLAGS. --- config.ml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config.ml b/config.ml index 16b3502..ddf5524 100644 --- a/config.ml +++ b/config.ml @@ -38,6 +38,11 @@ let libguestfs_localconfigure source = # erlang is disabled because it is broken in Rawhide: # https://bugzilla.redhat.com/show_bug.cgi?id=1316206 +# Add -fPIC to flags otherwise linking OCaml objects fails. +export CFLAGS=\"-O2 -g -fPIC\" +export CXXFLAGS=\"$CFLAGS\" +export LDFLAGS=\"-fPIC\" + %s \\ PYTHON=/usr/bin/python3 \\ --prefix /usr \\ -- 1.8.3.1