Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3420b24

Browse files
committed
Fix dependency tracking for src/port/%_srv.o files
Because they use their own compilation rule, they don't use thedependency tracking logic from Makefile.global. To make sure thatdependency tracking works anyway for the *_srv.o files, depend ontheir *.o siblings as well, which do have proper dependencies. It's ahack that might fail someday if there is a *_srv.o without acorresponding *.o, but it works for now (and those would probably gointo src/backend/port/ anyway).
1 parentdcb2c58 commit3420b24

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

‎src/port/Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,14 @@ thread.o: CFLAGS+=$(PTHREAD_CFLAGS)
6262
libpgport_srv.a:$(OBJS_SRV)
6363
$(AR)$(AROPT)$@$^
6464

65-
%_srv.o:%.c
65+
# Because this uses its own compilation rule, it doesn't use the
66+
# dependency tracking logic from Makefile.global. To make sure that
67+
# dependency tracking works anyway for the *_srv.o files, depend on
68+
# their *.o siblings as well, which do have proper dependencies. It's
69+
# a hack that might fail someday if there is a *_srv.o without a
70+
# corresponding *.o, but it works for now (and those would probably go
71+
# into src/backend/port/ anyway).
72+
%_srv.o:%.c%.o
6673
$(CC)$(CFLAGS)$(subst -DFRONTEND,,$(CPPFLAGS)) -c$< -o$@
6774

6875
$(OBJS_SRV): | submake-errcodes

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp