From 02bb9edcde18f772c306d6b0ea7273ec66106b34 Mon Sep 17 00:00:00 2001 From: Luca Saiu Date: Wed, 25 Aug 2021 14:42:18 +0200 Subject: [PATCH] build system fix: compile C sources with -fPIC, just like C++ sources --- Makefile.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.conf b/Makefile.conf index bdb0226..d0ede12 100644 --- a/Makefile.conf +++ b/Makefile.conf @@ -18,6 +18,7 @@ PREFIX?=$(HOME) # Constants CXXFLAGS+=-std=c++11 -fPIC CXXFLAGS+=-I$(PREFIX)/include +CFLAGS+=-fPIC LDFLAGS+=-L$(PREFIX)/lib ifneq (,$(findstring g++,$(CXX)))