File: link

package info (click to toggle)
libnginx-mod-js 0.7.9-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,180 kB
  • sloc: ansic: 91,416; javascript: 4,038; exp: 427; sh: 309; python: 181; perl: 126; makefile: 18
file content (31 lines) | stat: -rw-r--r-- 780 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

# Copyright (C) Dmitry Volyntsev
# Copyright (C) NGINX, Inc.


NJS_HAVE_DL_ITERATE_PHDR=NO

if [ $NJS_ADDR2LINE = YES ]; then
    njs_feature="dl_iterate_phdr()"
    njs_feature_name=NJS_HAVE_DL_ITERATE_PHDR
    njs_feature_run=yes
    njs_feature_incs=
    njs_feature_libs=
    njs_feature_test="#define _GNU_SOURCE
                      #include <link.h>

                      static int
                      cb(struct dl_phdr_info *info, size_t size, void *data) {
                          return 0;
                      }

                      int main() {
                          dl_iterate_phdr(cb, 0);
                          return 0;
                      }"
    . auto/feature

    if [ $njs_found = yes ]; then
        NJS_HAVE_DL_ITERATE_PHDR=YES
    fi
fi