summaryrefslogtreecommitdiff
path: root/lib/crypto
diff options
context:
space:
mode:
authorMikael Pettersson <mikael.pettersson@klarna.com>2020-11-12 10:53:18 +0100
committerMikael Pettersson <mikpelinux@gmail.com>2020-11-25 16:22:23 +0100
commit9af0fa871420bbc4656f7f6b27e3c9dbb21dbfef (patch)
tree6e2bf9152d3d4ebd1f94d36ce5f783b9e98bef5d /lib/crypto
parent7e2383ad3546505632c047ddff04c5bcbb9b6df9 (diff)
downloaderlang-9af0fa871420bbc4656f7f6b27e3c9dbb21dbfef.tar.gz
crypto: enable gprof build
Diffstat (limited to 'lib/crypto')
-rw-r--r--lib/crypto/c_src/Makefile.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/crypto/c_src/Makefile.in b/lib/crypto/c_src/Makefile.in
index 786fbc1031..45f5a3314e 100644
--- a/lib/crypto/c_src/Makefile.in
+++ b/lib/crypto/c_src/Makefile.in
@@ -54,10 +54,16 @@ ifeq ($(TYPE),valgrind)
TYPEMARKER = .valgrind
TYPE_FLAGS = $(subst -O3,,$(subst -O2,,$(CFLAGS))) -DVALGRIND
else
+ifeq ($(TYPE),gprof)
+TYPEMARKER = .gprof
+TYPE_EXTRA_CFLAGS = -DGPROF -pg
+TYPE_FLAGS = $(CFLAGS) $(TYPE_EXTRA_CFLAGS)
+else
TYPEMARKER =
TYPE_FLAGS = $(CFLAGS)
endif
endif
+endif
# ----------------------------------------------------
# Release directory specification
@@ -145,7 +151,7 @@ endif
CONFIGURE_ARGS = -DDISABLE_EVP_DH=@DISABLE_EVP_DH@
ALL_CFLAGS = $(TYPE_FLAGS) $(EXTRA_FLAGS) $(CONFIGURE_ARGS) $(INCLUDES)
-ALL_STATIC_CFLAGS = @DED_STATIC_CFLAGS@ $(CONFIGURE_ARGS) $(INCLUDES)
+ALL_STATIC_CFLAGS = @DED_STATIC_CFLAGS@ $(TYPE_EXTRA_CFLAGS) $(CONFIGURE_ARGS) $(INCLUDES)
# ----------------------------------------------------
# Targets