1 diff --git a/Makefile b/Makefile
2 index 75fd39c..a39e94a 100644
6 -all: make-simavr make-tests
10 - make -C simavr && make -C examples
15 diff --git a/Makefile.common b/Makefile.common
16 index bc8e3ba..9bfebc1 100644
19 @@ -33,7 +33,7 @@ ifeq ($(ARCH), i)
20 CFLAGS += -mfpmath=sse -msse2
23 -CFLAGS += -g --std=gnu99
24 +CFLAGS += -fPIC -g --std=gnu99
25 CFLAGS += ${patsubst %,-I%,${subst :, ,${IPATH}}}
28 @@ -43,7 +43,7 @@ AVR_INC := ${AVR_ROOT}/avr-4/
29 AVR := ${AVR_ROOT}/bin/avr-
30 LFLAGS += -L/opt/local/lib
32 -AVR_ROOT := /usr/lib/avr
34 AVR_INC := ${AVR_ROOT}
37 diff --git a/simavr/Makefile b/simavr/Makefile
38 index 4e57f89..fad9a12 100644
45 -CFLAGS += -O3 -Wall -Werror
46 +CFLAGS += -fPIC -O3 -Wall -Werror
48 # tracing id useful especialy if you develop simavr core.
49 # it otherwise eat quite a bit of few cycles, even disabled