@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
1010
1111 # Explicitly link against libgcc_s, to work around the infamous
1212 # "libgcc_s.so.1 must be installed for pthread_cancel to work".
13− LDFLAGS = "-lgcc_s";
13+ LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";
1414
1515 preConfigure = ''
1616 cp ${automake}/share/automake*/config.{sub,guess} config
@@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
2727 '';
2828 license = licenses.gpl2Plus;
2929 homepage = http://ex-parrot.com/pdw/iftop/;
30− platforms = platforms.linux;
30+ platforms = platforms.unix;
3131 maintainers = [ maintainers.mornfall ];
3232 };
3333}