Content-Length: 266099 | pFad | http://github.com/postgrespro/postgres/commit/0ade8421b5b2c85185fdfddbd5833222e5d4146b

D1 Fix symlink for errcodes.h so it works in VPATH builds from tarballs. · postgrespro/postgres@0ade842 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/0ade8421b5b2c85185fdfddbd5833222e5d4146b

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy