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

Commit550fbc6

Browse files
committed
Warn when MinGW fails to create symlinks during configure. Report
already made to MinGW maintainers.Andrew Dunstan
1 parent4d924bd commit550fbc6

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

‎configure

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17974,6 +17974,25 @@ ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
1797417974
ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/include/dynloader.h:src/backend/port/dynloader/${template}.h src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
1797517975

1797617976

17977+
# Links sometimes fail undetected on Mingw -
17978+
# so here we detect it and warn the user
17979+
case $host_os in mingw*)
17980+
for linktarget in \
17981+
src/backend/port/tas.s \
17982+
src/backend/port/dynloader.c \
17983+
src/backend/port/pg_sema.c \
17984+
src/backend/port/pg_shmem.c \
17985+
src/include/dynloader.h \
17986+
src/include/pg_config_os.h \
17987+
src/Makefile.port
17988+
do
17989+
# test -e works for symlinks in the MinGW console
17990+
test -e $linktarget || { echo "$as_me:$LINENO: WARNING: *** link for $linktarget failed - please fix by hand" >&5
17991+
echo "$as_me: WARNING: *** link for $linktarget failed - please fix by hand" >&2;}
17992+
done
17993+
;;
17994+
esac
17995+
1797717996
ac_config_headers="$ac_config_headers src/include/pg_config.h"
1797817997

1797917998

‎configure.in

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl Process this file with autoconf to produce a configure script.
2-
dnl $PostgreSQL: pgsql/configure.in,v 1.346 2004/05/11 21:57:13 momjian Exp $
2+
dnl $PostgreSQL: pgsql/configure.in,v 1.347 2004/05/13 01:45:02 momjian Exp $
33
dnl
44
dnl Developers, please strive to achieve this order:
55
dnl
@@ -1236,6 +1236,24 @@ AC_CONFIG_LINKS([
12361236
src/Makefile.port:src/makefiles/Makefile.${template}
12371237
])
12381238

1239+
# Links sometimes fail undetected on Mingw -
1240+
# so here we detect it and warn the user
1241+
case $host_os in mingw*)
1242+
for linktarget in \
1243+
src/backend/port/tas.s \
1244+
src/backend/port/dynloader.c \
1245+
src/backend/port/pg_sema.c \
1246+
src/backend/port/pg_shmem.c \
1247+
src/include/dynloader.h \
1248+
src/include/pg_config_os.h \
1249+
src/Makefile.port
1250+
do
1251+
# test -e works for symlinks in the MinGW console
1252+
test -e $linktarget || AC_MSG_WARN([*** link for $linktarget failed - please fix by hand])
1253+
done
1254+
;;
1255+
esac
1256+
12391257
AC_CONFIG_HEADERS([src/include/pg_config.h],
12401258
[
12411259
# Update timestamp for pg_config.h (see Makefile.global)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp