projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a64441f
)
we (also) build a shared lib for which some architecture require PIC code
author
Matthias Braun
<matze@braunis.de>
Wed, 19 Oct 2011 19:34:14 +0000
(21:34 +0200)
committer
Matthias Braun
<matze@braunis.de>
Wed, 19 Oct 2011 19:44:39 +0000
(21:44 +0200)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
d643a08
..
8ebd85b
100644
(file)
--- 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))