File: mapfile.m4

package info (click to toggle)
dante 1.4.2+dfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 11,640 kB
  • sloc: ansic: 64,514; sh: 11,180; yacc: 3,127; lex: 1,683; makefile: 364; awk: 220
file content (44 lines) | stat: -rw-r--r-- 1,063 bytes parent folder | download | duplicates (3)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
dnl generate symbol list to limit library symbol export

MAPFILE=socks.sym

STDDIRS="lib/" #socks shared/dynamic libraries (Rfoo functions)
for symdir in $STDDIRS; do
    cp /dev/null $symdir/$MAPFILE
    cat include/symbols_common.txt >> $symdir/$MAPFILE
done

PLDDIRS="dlib/" #preloading (standard, non-Rfoo functions)
if test x"$sol64" = xt; then
   PLDDIRS="$PLDDIRS dlib64/"
fi
for symdir in $PLDDIRS; do
    cat include/symbols_preload.txt >> $symdir/$MAPFILE

    #platform dependent symbols
    case $host in
	*-*-darwin*)
	    cat include/symbols_darwin.txt >> $symdir/$MAPFILE
	    ;;

	*-*-linux-*)
	    if test x"${stdio_preload}" = xt; then
		cat include/symbols_glibc.txt >> $symdir/$MAPFILE
	    fi
	    ;;

       *-*-solaris*)
	    cat include/symbols_osol.txt >> $symdir/$MAPFILE
	    if test x"${stdio_preload}" = xt; then
		cat include/symbols_osol_stdio.txt >> $symdir/$MAPFILE
	    fi
	    ;;

	*-*-freebsd*)
	    cat include/symbols_freebsd.txt >> $symdir/$MAPFILE
	    ;;
    esac
done

MAPOPT="-export-symbols socks.sym"
AC_SUBST(MAPOPT)