Commit 92f27f7091a9ac1ad6f2e7e72aafe71436b9ab99

Stefan Sperling 2018-03-16T21:04:40

i committed the profile build stuff again... back it out

diff --git a/got/Makefile b/got/Makefile
index b96fa54..8e74120 100644
--- a/got/Makefile
+++ b/got/Makefile
@@ -7,9 +7,7 @@ SRCS=		got.c delta.c error.c fileindex.c object.c path.c pack.c \
 CPPFLAGS = -I${.CURDIR}/../include -I${.CURDIR}/../lib
 LDADD = -lutil -lz
 DPADD = ${LIBZ} ${LIBUTIL}
-CC = gcc
-DEBUG = -O0 -pg
-CPPFLAGS += -DPROFILE
+DEBUG = -O0 -g
 CFLAGS += -Werror -Wall -Wstrict-prototypes -Wunused-variable
 
 # For now, default to installing binary in ~/bin
diff --git a/got/got.c b/got/got.c
index 3ae4fc6..be95ec2 100644
--- a/got/got.c
+++ b/got/got.c
@@ -173,10 +173,9 @@ cmd_checkout(int argc, char *argv[])
 	argc -= optind;
 	argv += optind;
 
-#ifndef PROFILE
 	if (pledge("stdio rpath wpath cpath flock", NULL) == -1)
 		err(1, "pledge");
-#endif
+
 	if (argc == 1) {
 		char *cwd, *base, *dotgit;
 		repo_path = argv[0];
@@ -299,10 +298,9 @@ cmd_log(int argc, char *argv[])
 	struct got_object *obj;
 	char *repo_path = NULL;
 
-#ifndef PROFILE
 	if (pledge("stdio rpath wpath cpath", NULL) == -1)
 		err(1, "pledge");
-#endif
+
 	if (argc == 1) {
 		repo_path = getcwd(NULL, 0);
 		if (repo_path == NULL)