Commit 5ec858c4 authored by Sam Hocevar's avatar Sam Hocevar

* ./Makefile.am: fixed LDFLAGS when using --enable-gprof.

parent 2fedaa09
...@@ -62,7 +62,7 @@ CPPFLAGS_default = -I$(top_srcdir)/include ...@@ -62,7 +62,7 @@ CPPFLAGS_default = -I$(top_srcdir)/include
CFLAGS_default = CFLAGS_default =
CXXFLAGS_default = CXXFLAGS_default =
OBJCFLAGS_default = OBJCFLAGS_default =
LDFLAGS_default = LDFLAGS_default = $(LDFLAGS_gprof)
CPPFLAGS_pic = $(CPPFLAGS_default) CPPFLAGS_pic = $(CPPFLAGS_default)
CFLAGS_pic = $(CFLAGS_default) @CFLAGS_pics@ CFLAGS_pic = $(CFLAGS_default) @CFLAGS_pics@
...@@ -112,11 +112,12 @@ CFLAGS_debug = -g ...@@ -112,11 +112,12 @@ CFLAGS_debug = -g
endif endif
if GPROF if GPROF
CPPFLAGS_gprof = -DGPROF CPPFLAGS_gprof = -DGPROF
CFLAGS_gprof = -finstrument-functions CFLAGS_gprof = -pg
LDFLAGS_gprof = -pg
endif endif
if CPROF if CPROF
CPPFLAGS_cprof = -DCPROF CPPFLAGS_cprof = -DCPROF
CFLAGS_cprof = -pg CFLAGS_cprof = -finstrument-functions
endif endif
if OPTIM if OPTIM
CFLAGS_optim = @CFLAGS_OPTIM@ @CFLAGS_TUNING@ CFLAGS_optim = @CFLAGS_OPTIM@ @CFLAGS_TUNING@
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment