summaryrefslogtreecommitdiffstats
path: root/libelf/Makefile.am
diff options
context:
space:
mode:
authorUlrich Drepper <[email protected]>2005-08-07 04:41:39 +0000
committerUlrich Drepper <[email protected]>2005-08-07 04:41:39 +0000
commit47be795df365174601a08535bf61d22301697ef8 (patch)
tree016407cd67ef07066784632ffa1a04f059dce6a7 /libelf/Makefile.am
parentca2db8a3ae7bbcbaa8aa314d06608683e694d2df (diff)
Implement --enable-gprof option in configure script.
Diffstat (limited to 'libelf/Makefile.am')
-rw-r--r--libelf/Makefile.am5
1 files changed, 4 insertions, 1 deletions
diff --git a/libelf/Makefile.am b/libelf/Makefile.am
index d9caac65..3853608b 100644
--- a/libelf/Makefile.am
+++ b/libelf/Makefile.am
@@ -17,10 +17,13 @@
##
DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H
if MUDFLAP
-AM_CFLAGS = -fpic -fmudflap
+AM_CFLAGS = -fmudflap
else
AM_CFLAGS =
endif
+if BUILD_STATIC
+AM_CFLAGS += -fpic
+endif
AM_CFLAGS += -Wall -Wshadow -Werror -Wunused -Wextra -Wformat=2 -std=gnu99 \
$($(*F)_CFLAGS)
INCLUDES = -I$(srcdir) -I$(top_srcdir)/lib -I..