| 1 |
# src/template/win32 |
| 2 |
|
| 3 |
# define before including <time.h> for getting localtime_r() etc. on MinGW |
| 4 |
CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE" |
| 5 |
|
| 6 |
# Extra CFLAGS for code that will go into a shared library |
| 7 |
CFLAGS_SL="" |
| 8 |
|
| 9 |
# --allow-multiple-definition is required to link pg_dump because it finds |
| 10 |
# pg_toupper() etc. in both libpq and pgport |
| 11 |
# --disable-auto-import is to ensure we get MSVC-like linking behavior |
| 12 |
LDFLAGS="$LDFLAGS -Wl,--allow-multiple-definition -Wl,--disable-auto-import" |
| 13 |
|
| 14 |
DLSUFFIX=".dll" |