summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-db/lmdb/lmdb-0.9.19.ebuild2
1 files changed, 2 insertions, 0 deletions
diff --git a/dev-db/lmdb/lmdb-0.9.19.ebuild b/dev-db/lmdb/lmdb-0.9.19.ebuild
index c4452f3a228f..116e69d4f999 100644
--- a/dev-db/lmdb/lmdb-0.9.19.ebuild
+++ b/dev-db/lmdb/lmdb-0.9.19.ebuild
@@ -38,6 +38,8 @@ src_configure() {
if [[ ${CHOST} == *-solaris* ]] ; then
# ensure sigwait has a second sig argument
append-cppflags -D_POSIX_PTHREAD_SEMANTICS
+ # fdatasync lives in -lrt on Solaris 10
+ [[ ${CHOST#*-solaris2.} -le 10 ]] && append-ldflags -lrt
fi
}