You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.3 KiB

  1. From df50c29210f18f959186bb974c33cefff2bcc15e Mon Sep 17 00:00:00 2001
  2. From: Eneas U de Queiroz <cotequeiroz@gmail.com>
  3. Date: Fri, 8 Oct 2021 22:34:37 -0300
  4. Subject: [PATCH] Comment out librt testing
  5. The packages feed Ci is apparently failing to execute the test:
  6. Makefile.flags:128: *** unterminated call to function 'shell':
  7. missing ')'. Stop.
  8. The call appears to be correct, but we already know that the library
  9. will not be needed for openwrt, so let's just leave it out.
  10. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
  11. --- a/Makefile.flags
  12. +++ b/Makefile.flags
  13. @@ -125,10 +125,10 @@ export SYSROOT=$(CONFIG_SYSROOT)
  14. endif
  15. # glibc versions before 2.17 need to link with -rt to use clock_gettime
  16. -RT_NEEDED := $(shell echo -e '#include <time.h>\nint main(void){struct timespec tp; return clock_gettime(CLOCK_MONOTONIC, &tp);}' >rttest.c; $(CC) $(CFLAGS) -o /dev/null rttest.c >/dev/null 2>&1 || echo "y"; rm rttest.c)
  17. -ifeq ($(RT_NEEDED),y)
  18. -LDLIBS += rt
  19. -endif
  20. +#RT_NEEDED := $(shell echo -e '#include <time.h>\nint main(void){struct timespec tp; return clock_gettime(CLOCK_MONOTONIC, &tp);}' >rttest.c; $(CC) $(CFLAGS) -o /dev/null rttest.c >/dev/null 2>&1 || echo "y"; rm rttest.c)
  21. +#ifeq ($(RT_NEEDED),y)
  22. +#LDLIBS += rt
  23. +#endif
  24. # Android has no separate crypt library
  25. # gcc-4.2.1 fails if we try to feed C source on stdin: