diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2016-05-27 10:37:06 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2016-05-27 10:37:06 +0100 |
commit | f2ec81cf210ec30418a7906abec004f7321b94f2 (patch) | |
tree | 7157c6693bac68532c3f231326de5e9fb6607238 | |
parent | 20d97eb849282ae2ca5ff543f6826d689a07199a (diff) | |
download | rtmux-f2ec81cf210ec30418a7906abec004f7321b94f2.tar.gz rtmux-f2ec81cf210ec30418a7906abec004f7321b94f2.tar.bz2 rtmux-f2ec81cf210ec30418a7906abec004f7321b94f2.zip |
Add flag for -pg.
-rw-r--r-- | Makefile.am | 4 | ||||
-rw-r--r-- | configure.ac | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 45288a26..d2a1cab5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -37,6 +37,10 @@ if IS_COVERAGE CFLAGS += -g -O0 --coverage LDFLAGS += --coverage endif +if IS_PROFILE +CFLAGS += -g -O0 -pg +LDFLAGS += -pg +endif CPPFLAGS += -iquote. endif diff --git a/configure.ac b/configure.ac index 3692a521..f53414b3 100644 --- a/configure.ac +++ b/configure.ac @@ -40,6 +40,14 @@ AC_ARG_ENABLE( ) AM_CONDITIONAL(IS_COVERAGE, test "x$found_coverage" = xyes) +# Is this --enable-profile? +AC_ARG_ENABLE( + profile, + AC_HELP_STRING(--enable-profile, enable profile build flags), + found_profile=$enable_profile +) +AM_CONDITIONAL(IS_PROFILE, test "x$found_profile" = xyes) + # Is this a static build? AC_ARG_ENABLE( static, |