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.
6 # Select where system include files should be sought
7 PG_SYSROOT=`${srcdir}/src/tools/darwin_sysroot $PG_SYSROOT`
9 if test -d "$PG_SYSROOT" ; then
10 CPPFLAGS="-isysroot $PG_SYSROOT $CPPFLAGS"
11 LDFLAGS="-isysroot $PG_SYSROOT $LDFLAGS"
14 # Extra CFLAGS for code that will go into a shared library
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.
23 USE_NAMED_POSIX_SEMAPHORES=1