| 1 |
# src/template/cygwin |
| 2 |
|
| 3 |
# Prefer unnamed POSIX semaphores if available, unless user overrides choice |
| 4 |
if test x"$PREFERRED_SEMAPHORES" = x"" ; then |
| 5 |
PREFERRED_SEMAPHORES=UNNAMED_POSIX |
| 6 |
fi |
| 7 |
|
| 8 |
SRCH_LIB="/usr/local/lib" |
| 9 |
|
| 10 |
# This is required for ppoll(2), and perhaps other things |
| 11 |
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" |
| 12 |
|
| 13 |
# Extra CFLAGS for code that will go into a shared library |
| 14 |
CFLAGS_SL="" |
| 15 |
|
| 16 |
# --allow-multiple-definition is required to link pg_dump because it finds |
| 17 |
# pg_toupper() etc. in both libpq and pgport |
| 18 |
# we'd prefer to use --disable-auto-import to match MSVC linking behavior, |
| 19 |
# but support for it in Cygwin is too haphazard |
| 20 |
LDFLAGS="$LDFLAGS -Wl,--allow-multiple-definition -Wl,--enable-auto-import" |
| 21 |
|
| 22 |
DLSUFFIX=".dll" |