From 6a860a01c3033170e8a9c5aa9eb456874cdd986d Mon Sep 17 00:00:00 2001 From: Ingo Franzki Date: Fri, 3 Jul 2020 14:00:42 +0200 Subject: [PATCH] libutil: Add -fPIC option for building libutil objects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add the -fPIC option when building the libutil objects to generate position-independent code, and allow them to be used in dynamically loaded shared libraries. Signed-off-by: Ingo Franzki Acked-by: Jan Höppner Signed-off-by: Jan Höppner --- libutil/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/libutil/Makefile b/libutil/Makefile index 4ab97fa4..8c36d4ef 100644 --- a/libutil/Makefile +++ b/libutil/Makefile @@ -43,6 +43,7 @@ util_prg_example: util_prg_example.o $(lib) util_rec_example: util_rec_example.o $(lib) $(lib): $(objects) +$(lib): ALL_CFLAGS += -fPIC install: all