| 1 |
# src/template/darwin |
| 2 |
|
| 3 |
# Note: Darwin is the original code name for macOS, also known as OS X. |
| 4 |
# We still use "darwin" as the port name, partly because config.guess does. |
| 5 |
|
| 6 |
# Select where system include files should be sought |
| 7 |
PG_SYSROOT=`${srcdir}/src/tools/darwin_sysroot $PG_SYSROOT` |
| 8 |
|
| 9 |
if test -d "$PG_SYSROOT" ; then |
| 10 |
CPPFLAGS="-isysroot $PG_SYSROOT $CPPFLAGS" |
| 11 |
LDFLAGS="-isysroot $PG_SYSROOT $LDFLAGS" |
| 12 |
fi |
| 13 |
|
| 14 |
# Extra CFLAGS for code that will go into a shared library |
| 15 |
CFLAGS_SL="" |
| 16 |
|
| 17 |
# Select appropriate semaphore support. Darwin 6.0 (macOS 10.2) and up |
| 18 |
# support System V semaphores; before that we have to use named POSIX |
| 19 |
# semaphores, which are less good for our purposes because they eat a |
| 20 |
# file descriptor per backend per max_connection slot. |
| 21 |
case $host_os in |
| 22 |
darwin[015].*) |
| 23 |
USE_NAMED_POSIX_SEMAPHORES=1 |
| 24 |
;; |
| 25 |
*) |
| 26 |
USE_SYSV_SEMAPHORES=1 |
| 27 |
;; |
| 28 |
esac |
| 29 |
|
| 30 |
DLSUFFIX=".dylib" |