From 75f30157e4c4306214309ff6f04a24e14d3e4508 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Wed, 19 Oct 2011 21:34:14 +0200 Subject: [PATCH] we (also) build a shared lib for which some architecture require PIC code --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d643a083b..8ebd85b23 100644 --- a/Makefile +++ b/Makefile @@ -25,10 +25,11 @@ RANLIB ?= ranlib DLLEXT ?= .so # Variants -CFLAGS_debug = -O0 -g3 -DDEBUG_libfirm -CFLAGS_profile = -O3 -pg -DNDEBUG -fno-inline +CFLAGS_all = -fPIC +CFLAGS_debug = $(CFLAGS_all) -O0 -g3 -DDEBUG_libfirm +CFLAGS_profile = $(CFLAGS_all) -O3 -pg -DNDEBUG -fno-inline LINKFLAGS_profile = -pg -CFLAGS_optimize = -O3 -DNDEBUG +CFLAGS_optimize = $(CFLAGS_all) -O3 -DNDEBUG # General flags CFLAGS += $(CFLAGS_$(variant)) -- 2.20.1