aboutsummaryrefslogtreecommitdiff
path: root/src/template/win32
blob: 4f8b0923fe0418290dcd8b0487e136fcd86660b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# src/template/win32

# define before including <time.h> for getting localtime_r() etc. on MinGW
CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE"

# Extra CFLAGS for code that will go into a shared library
CFLAGS_SL=""

# --allow-multiple-definition is required to link pg_dump because it finds
# pg_toupper() etc. in both libpq and pgport
# --disable-auto-import is to ensure we get MSVC-like linking behavior
LDFLAGS="$LDFLAGS -Wl,--allow-multiple-definition -Wl,--disable-auto-import"

DLSUFFIX=".dll"