Skip to content

Commit 0ade842

Browse files
committed
Fix symlink for errcodes.h so it works in VPATH builds from tarballs.
backend/Makefile was treating errcodes.h as a header always generated during build, but actually it's a header provided in tarballs. Hence, must use the absolute-symlink recipe, not the relative-symlink one. Per bug #6072 from Hartmut Raschick.
1 parent addf11f commit 0ade842

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,9 @@ $(top_builddir)/src/include/catalog/schemapg.h: catalog/schemapg.h
174174
$(LN_S) "$$prereqdir/$(notdir $<)" .
175175

176176
$(top_builddir)/src/include/utils/errcodes.h: utils/errcodes.h
177-
cd '$(dir $@)' && rm -f $(notdir $@) && \
178-
$(LN_S) "../../../$(subdir)/utils/errcodes.h" .
177+
prereqdir=`cd '$(dir $<)' >/dev/null && pwd` && \
178+
cd '$(dir $@)' && rm -f $(notdir $@) && \
179+
$(LN_S) "$$prereqdir/$(notdir $<)" .
179180

180181
$(top_builddir)/src/include/utils/fmgroids.h: utils/fmgroids.h
181182
prereqdir=`cd '$(dir $<)' >/dev/null && pwd` && \

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy