1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-08 02:43:54 +02:00

Added optional parameter which adds -lnsl -lsocket to make the Nix package manager work on OpenSolaris

This commit is contained in:
Sander van der Burg 2009-10-08 14:50:37 +00:00
parent 18f0ff003d
commit 53a4981fa2
7 changed files with 12 additions and 6 deletions

View file

@ -76,6 +76,12 @@ if test "$sys_name" = "cygwin"; then
AC_DEFINE(CANNOT_DELETE_OPEN_FILES, 1, [Whether it is impossible to delete open files.])
fi
# Solaris-specific stuff.
if test "$sys_name" = "sunos"; then
# Solaris requires -lsocket -lnsl for network functions
ADDITIONAL_NETWORK_LIBS="-lsocket -lnsl"
AC_SUBST(ADDITIONAL_NETWORK_LIBS)
fi
AC_PROG_CC
AC_PROG_CXX