40de350c7aff82babf54c7a7eea41ff5c354bafc
chmalee
  Tue Jul 14 11:15:31 2026 -0700
Build shared objects once before parallel sub-makes in userAppMulti.mk. refs #37809

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

diff --git src/hg/hgHubConnect/hooks/makefile src/hg/hgHubConnect/hooks/makefile
index 33d901b7ec4..a880cfa336f 100644
--- src/hg/hgHubConnect/hooks/makefile
+++ src/hg/hgHubConnect/hooks/makefile
@@ -1,12 +1,13 @@
 kentSrc = ../../..
 ifeq (${PROG},)
 PROGS = pre-create pre-finish
+sharedObjects = hooklib.o
 include ${kentSrc}/inc/userAppMulti.mk
 else
 extraObjects = hooklib.o
 extraHeaders = hooklib.h
 CGI_LOADER_SUBDIR = hooks
 
 A = ${PROG}
 include ${kentSrc}/inc/cgiLoader.mk
 endif