Yousong Zhou e8f79474c9 libpcap: build with cmake
The main motivation is to drop and stop maintaining
"100-debian_shared_lib.patch".  It lacks the logic to include custom
implementation of several functions like pcap_strlcpy() which can cause
build failures when glibc is used [2]

CAN and CAN-USB support related symbols are now handled by general linux
support, see [1]

"-ffunction-sections -fdata-sections" were removed as they should help
much for shared libraries

Size comparison before and after the change

  -rw-r--r-- 1 yunion yunion 238042 Oct 18 11:42 ipkg-x86_64/libpcap/usr/lib/libpcap.so.1

  lrwxrwxrwx 1 yunion yunion     16 Oct 18 13:03 ipkg-x86_64/libpcap/usr/lib/libpcap.so.1 -> libpcap.so.1.9.1
  -rwxr-xr-x 1 yunion yunion 229867 Oct 18 13:03 ipkg-x86_64/libpcap/usr/lib/libpcap.so.1.9.1

[1] On Linux, handle all CAN captures with pcap-linux.c, in cooked mode,
    93ca5ff703
[2] https://github.com/openwrt/packages/issues/10270

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2019-10-21 01:37:43 +00:00
..
2019-09-21 01:09:30 +02:00
2019-01-24 10:39:30 +01:00
2019-05-17 21:41:43 +02:00
2019-10-15 22:35:14 +02:00
2019-06-19 22:44:28 +02:00
2019-01-24 10:39:30 +01:00
2019-09-01 18:38:04 +02:00
2019-01-24 10:39:30 +01:00
2019-10-21 01:37:43 +00:00
2019-01-24 10:39:30 +01:00
2019-01-24 10:39:30 +01:00
2019-09-20 19:32:04 +02:00
2019-08-09 21:40:13 +02:00
2019-08-18 18:58:16 +02:00
2019-02-26 23:20:04 +01:00
2019-10-12 23:43:08 +02:00