[Nix-dev] [Nix-commits] SVN commit: nix - r30503 - nix/trunk

Ludovic Courtès ludo at gnu.org
Mon Nov 21 18:02:46 CET 2011


Hi,

Eelco Dolstra <e.dolstra at tudelft.nl> skribis:

> Author: eelco
> Date: Mon Nov 21 12:23:48 2011
> New Revision: 30503
> URL: https://nixos.org/websvn/nix/?rev=30503&sc=1

[...]

> +sys_name=$(uname -s | tr 'A-Z ' 'a-z_')
> +
> +case $sys_name in
> +    cygwin*)
> +        sys_name=cygwin
> +        ;;
> +esac

[...]

>  # Solaris-specific stuff.
> -if test "$sys_name" = "sunos"; then
> +if [ "$sys_name" = sunos ]; then
>      # Solaris requires -lsocket -lnsl for network functions
>      LIBS="-lsocket -lnsl $LIBS"
>  fi

You need to use $host_os for that, otherwise you’re making decision
based on the wrong information (the build OS instead of the host OS.)

Thanks,
Ludo’.


More information about the nix-dev mailing list