source: src/osflags @ d5acb5

Revision d5acb5, 467 bytes checked in by Sebastien Raveau <sebastien.raveau@…>, 3 years ago (diff)

Add support for applying SELinux context

  • Property mode set to 100755
Line 
1#!/bin/sh
2
3case $2 in
4link)
5
6        case $1 in
7                SunOS | solaris)
8                        echo '-lsocket -lnsl';
9                ;;
10                BeOS)
11                        echo '-lsocket -lbind -lbsd';
12                ;;
13                Haiku)
14                        echo '-lnetwork';
15                ;;
16                windows32)
17                        echo '-lws2_32 -liphlpapi';
18                ;;
19                Linux)
20                        [ -e /usr/include/selinux/selinux.h ] && echo '-lselinux';
21                ;;
22        esac
23        ;;
24cflags)
25        case $1 in
26                BeOS)
27                        echo '-Dsocklen_t=int';
28                ;;
29                Linux)
30                        [ -e /usr/include/selinux/selinux.h ] && echo '-DHAVE_SETCON';
31                ;;
32        esac
33;;
34*)
35;;
36esac
Note: See TracBrowser for help on using the repository browser.