summaryrefslogtreecommitdiff
path: root/jni/iodine/src/osflags
diff options
context:
space:
mode:
Diffstat (limited to 'jni/iodine/src/osflags')
-rwxr-xr-xjni/iodine/src/osflags36
1 files changed, 36 insertions, 0 deletions
diff --git a/jni/iodine/src/osflags b/jni/iodine/src/osflags
new file mode 100755
index 0000000..787ffaa
--- /dev/null
+++ b/jni/iodine/src/osflags
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+case $2 in
+link)
+
+ case $1 in
+ SunOS | solaris)
+ echo '-lsocket -lnsl';
+ ;;
+ BeOS)
+ echo '-lsocket -lbind -lbsd';
+ ;;
+ Haiku)
+ echo '-lnetwork';
+ ;;
+ windows32)
+ echo '-lws2_32 -liphlpapi';
+ ;;
+ Linux)
+ [ -e /usr/include/selinux/selinux.h ] && echo '-lselinux';
+ ;;
+ esac
+ ;;
+cflags)
+ case $1 in
+ BeOS)
+ echo '-Dsocklen_t=int';
+ ;;
+ Linux)
+ [ -e /usr/include/selinux/selinux.h ] && echo '-DHAVE_SETCON';
+ ;;
+ esac
+;;
+*)
+;;
+esac