|
@@ -1,22 +1,24 @@
|
1
|
|
---- a/src/osflags
|
2
|
|
-+++ b/src/osflags
|
3
|
|
-@@ -16,9 +16,6 @@ link)
|
|
1
|
+--- iodine-0.7.0.orig/src/osflags
|
|
2
|
++++ iodine-0.7.0/src/osflags
|
|
3
|
+@@ -16,12 +16,6 @@ link)
|
4
|
4
|
windows32)
|
5
|
5
|
echo '-lws2_32 -liphlpapi';
|
6
|
6
|
;;
|
7
|
7
|
- Linux)
|
8
|
|
-- [ -e /usr/include/selinux/selinux.h ] && echo '-lselinux';
|
|
8
|
+- FLAGS="";
|
|
9
|
+- [ -e /usr/include/selinux/selinux.h ] && FLAGS="$FLAGS -lselinux";
|
|
10
|
+- [ -e /usr/include/systemd/sd-daemon.h ] && FLAGS="$FLAGS -lsystemd-daemon";
|
|
11
|
+- echo $FLAGS;
|
9
|
12
|
- ;;
|
10
|
13
|
esac
|
11
|
14
|
;;
|
12
|
15
|
cflags)
|
13
|
|
-@@ -26,9 +23,6 @@ cflags)
|
14
|
|
- BeOS)
|
15
|
|
- echo '-Dsocklen_t=int';
|
|
16
|
+@@ -34,8 +28,6 @@ cflags)
|
|
17
|
+ ;;
|
|
18
|
+ Linux)
|
|
19
|
+ FLAGS="-D_GNU_SOURCE"
|
|
20
|
+- [ -e /usr/include/selinux/selinux.h ] && FLAGS="$FLAGS -DHAVE_SETCON";
|
|
21
|
+- [ -e /usr/include/systemd/sd-daemon.h ] && FLAGS="$FLAGS -DHAVE_SYSTEMD";
|
|
22
|
+ echo $FLAGS;
|
16
|
23
|
;;
|
17
|
|
-- Linux)
|
18
|
|
-- [ -e /usr/include/selinux/selinux.h ] && echo '-DHAVE_SETCON';
|
19
|
|
-- ;;
|
20
|
24
|
esac
|
21
|
|
- ;;
|
22
|
|
- *)
|