Blob
- Date:
- Message:
- ensure that we always install static binaries to gotweb's chroot Compile static libexec binaries for gotweb, keeping them separate from the main build. Use the same source files but a separate set of Makefiles. Previously, 'make web-install' installed whichever libexec binaries had already been built, and if those happened to be dynamically linked they failed to run inside the chroot which resulted in "privsep peer process closed pipe" being rendered on the index page.
- Actions:
- History | Blame | Raw File
1 CPPFLAGS += -DGOT_LIBEXECDIR=${LIBEXECDIR} -DGOT_VERSION=${GOT_VERSION}2 CFLAGS += -Werror -Wall -Wstrict-prototypes -Wunused-variable3 #CFLAGS += -DGOT_PACK_NO_MMAP4 #CFLAGS += -DGOT_NO_OBJ_CACHE5 #CFLAGS += -DGOT_OBJ_CACHE_DEBUG7 .if "${GOT_RELEASE}" == "Yes"8 PREFIX ?= /usr/local9 BINDIR ?= ${PREFIX}/bin10 LIBEXECDIR ?= ${PREFIX}/libexec11 MANDIR ?= ${PREFIX}/man/man12 .else13 PREFIX ?= ${HOME}14 BINDIR ?= ${PREFIX}/bin15 LIBEXECDIR ?= ${BINDIR}17 BINOWN ?= ${USER}18 .if !defined(BINGRP)19 BINGRP != id -g -n20 .endif22 .if defined(PROFILE)23 CPPFLAGS += -DPROFILE24 DEBUG = -O0 -pg -g -static25 .else26 DEBUG = -O0 -g27 .endif29 .endif