openwrt/toolchain
Hauke Mehrtens 336ad4c9aa toolchain/uClibc: enable UCLIBC_HAS_OBSOLETE_BSD_SIGNAL
This is required to build net-snmp.

If that options is disabled in uClibc then net-snmp doesn't
detect sighold support on its configuration stage and so
defines HAVE_SIGHOLD as 0. That in its turn causes compilation of
the following branch of timerPause() in apps/snmpnetstat:
------------------>8----------------
    int             oldmask;
    oldmask = sigblock(sigmask(SIGALRM));
    if (!signalled) {
        sigpause(0);
    }
    sigsetmask(oldmask);
------------------>8----------------

Now in uClibc all 3 sigblock(), sigmask() and sigsetmask()
were removed back in 2005, see:
https://git.busybox.net/uClibc/commit/?id=5aa7aa7fa7ec2a0fe567ac0b2595b46add6f3594

And all that causes net-snmp linkage to fail this way:
------------------>8----------------
.libs/if.o: In function `intpr':
if.c:(.text+0x908): undefined reference to `sigmask'
if.c:(.text+0x90e): undefined reference to `sigblock'
if.c:(.text+0x924): undefined reference to `sigsetmask'
------------------>8----------------

If we enable UCLIBC_HAS_OBSOLETE_BSD_SIGNAL in uClibc then
branch with sighold is used in timerPause() and everything builds as
expected.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 49178
2016-04-17 12:49:30 +00:00
..
binutils binutils: switch to version 2.25.1 by default 2016-01-20 13:54:17 +00:00
fortify-headers fortify-headers: update to 0.7 2015-07-24 13:51:45 +00:00
gcc gcc: update gcc 5 to version 5.3.0 2016-02-29 20:09:45 +00:00
gdb toolchain/gdb: Update to 7.11 2016-03-10 19:11:41 +00:00
glibc toolchain/glibc: remove obsolete versions 2016-02-25 13:43:46 +00:00
insight build: remove check to nonexistant CONFIG_ENABLE_LOCALE variable and move DISABLE_NLS to package-defaults.mk 2014-03-21 15:54:07 +00:00
kernel-headers toolchain: remove obsolete kernel version check 2015-11-07 16:22:18 +00:00
musl musl: update to latest git, adds some fixes for the mips64 port and regular expressions 2016-03-07 21:00:49 +00:00
uClibc toolchain/uClibc: enable UCLIBC_HAS_OBSOLETE_BSD_SIGNAL 2016-04-17 12:49:30 +00:00
wrapper buildroot: allow specifying libc personality for external toolchains 2013-02-20 15:06:10 +00:00
Config.in toolchain: use musl instead of glibc by default for mips64 2016-02-26 10:56:02 +00:00
info.mk
Makefile toolchain: add fortify-headers, enable FORTIFY_SOURCE by default 2015-06-23 14:38:03 +00:00