commit - 92f27f7091a9ac1ad6f2e7e72aafe71436b9ab99
commit + 6715a7519bb26a9063aec92cd44d77ddf0fe4be9
blob - 8e741204236a2eac2d5340b57fde5b4e4a7d1eb6
blob + a65d4dbee29227ec4046e164cfdd079034bc1d3c
--- got/Makefile
+++ got/Makefile
CPPFLAGS = -I${.CURDIR}/../include -I${.CURDIR}/../lib
LDADD = -lutil -lz
DPADD = ${LIBZ} ${LIBUTIL}
+.if defined(PROFILE)
+CC = gcc
+CPPFLAGS += -DPROFILE
+DEBUG = -O0 -pg
+.else
DEBUG = -O0 -g
+.endif
CFLAGS += -Werror -Wall -Wstrict-prototypes -Wunused-variable
# For now, default to installing binary in ~/bin
blob - be95ec2118d5261062ef994e8f8d22a4a399606b
blob + 3ae4fc609a39598209ccaf1ba6d24074b0d5661a
--- got/got.c
+++ got/got.c
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];
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)