Check-in [5adbc973d7]
Overview
Comment:Updated to only expose public symbols
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 5adbc973d7a1451c2b5dd959781e3e5d05625d8d
User & Date: rkeene on 2014-05-02 04:00:04
Other Links: manifest | tags
Context
2014-05-02
04:00
Added public symbols list check-in: 265940cce3 user: rkeene tags: trunk
04:00
Updated to only expose public symbols check-in: 5adbc973d7 user: rkeene tags: trunk
03:46
Updated to install additional files check-in: 36efa528f3 user: rkeene tags: trunk
Changes

Modified .fossil-settings/ignore-glob from [41d740e8ec] to [2cf6ddabba].

    12     12   pkgIndex.tcl
    13     13   tcc/*
    14     14   work/*
    15     15   tcltcc.o
    16     16   tcltcc-static.a
    17     17   tcltcc.so
    18     18   tcltcc.sl
           19  +tcltcc.syms
           20  +tcltcc.vers

Modified Makefile.in from [152ca49ad5] to [67523e2b58].

     9      9   INSTALL = @INSTALL@
    10     10   PACKAGE_NAME = @PACKAGE_NAME@
    11     11   PACKAGE_VERSION = @PACKAGE_VERSION@
    12     12   TCL_PACKAGE_PATH = @TCL_PACKAGE_PATH@
    13     13   TCLCONFIGPATH = @TCLCONFIGPATH@
    14     14   PACKAGE_INSTALL_DIR = $(TCL_PACKAGE_PATH)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
    15     15   TARGETS = @TARGETS@
    16         -TCC_CONFIGURE_OPTS = --extra-cflags='$(CFLAGS)' --with-tcl=$(TCLCONFIGPATH)
           16  +TCC_CONFIGURE_OPTS = --extra-cflags='$(CPPFLAGS) $(CFLAGS)' --with-tcl=$(TCLCONFIGPATH)
    17     17   srcdir = @srcdir@
    18     18   
    19     19   all: $(TARGETS)
    20     20   
    21     21   tcc/config.h:
    22     22   	if [ "$(srcdir)" = "." ]; then \
    23     23   		cd tcc && ./configure $(TCC_CONFIGURE_OPTS); \
................................................................................
    33     33   	$(MAKE) -C tcc libtcc1.a
    34     34   
    35     35   tcltcc.o: $(srcdir)/tcltcc.c $(srcdir)/tcc/tcc.h $(srcdir)/tcc/libtcc.h tcc/config.h
    36     36   	$(CC) $(CPPFLAGS) $(CFLAGS) -o tcltcc.o -c $(srcdir)/tcltcc.c
    37     37   
    38     38   tcltcc.@SHOBJEXT@: tcltcc.o tcc/libtcc.a
    39     39   	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(SHOBJLDFLAGS) -o tcltcc.@SHOBJEXT@ tcltcc.o tcc/libtcc.a $(LIBS)
           40  +	-@WEAKENSYMS@ tcltcc.@SHOBJEXT@
           41  +	-@REMOVESYMS@ tcltcc.@SHOBJEXT@
    40     42   
    41     43   tcltcc-static.a: tcltcc.o tcc/libtcc.a
    42     44   	cp tcc/libtcc.a tcltcc-static.new.a
    43     45   	$(AR) rcu tcltcc-static.new.a tcltcc.o
    44     46   	-$(RANLIB) tcltcc-static.new.a
    45     47   	mv tcltcc-static.new.a tcltcc-static.a
    46     48   
................................................................................
    59     61   	rm -f tcltcc.@SHOBJEXT@ tcltcc-static.a
    60     62   	rm -f tcltcc.@SHOBJEXT@.a tcltcc.@SHOBJEXT@.def
    61     63   	-$(MAKE) -C tcc clean
    62     64   
    63     65   distclean: clean
    64     66   	rm -rf autom4te.cache
    65     67   	rm -f config.log config.status
    66         -	rm -f pkgIndex.tcl
           68  +	rm -f pkgIndex.tcl tcltcc.syms tcltcc.vers
    67     69   	rm -f Makefile
    68     70   	-$(MAKE) -C tcc distclean
    69     71   
    70     72   mrproper: distclean
    71     73   	rm -rf __TMP__
    72     74   	rm -rf tcc
    73     75   	rm -f configure aclocal.m4
    74     76   	rm -f config.guess config.sub install-sh
    75     77   
    76     78   .PHONY: all install clean distclean mrproper

Modified configure.ac from [7c8c9edb2e] to [f0cb7ec28f].

    18     18   	target=shared
    19     19   ])
    20     20   
    21     21   if test "${target}" = "shared"; then
    22     22   	dnl Determine how to make shared objects
    23     23   	DC_GET_SHOBJFLAGS
    24     24   
           25  +	dnl Only export symbols we wish to expose
           26  +	DC_SETVERSIONSCRIPT([tcltcc.syms], [tcltcc.vers])
           27  +	DC_FIND_STRIP_AND_REMOVESYMS([tcltcc.syms])
           28  +
    25     29   	TARGETS="tcltcc.${SHOBJEXT}"
    26     30   else
    27     31   	TARGETS="tcltcc-static.a"
    28     32   fi
    29     33   AC_SUBST(TARGETS)
    30     34   
    31     35   dnl Find out if we have the functions needed to open shared objects
................................................................................
    37     41   dnl Look for appropriate headers
    38     42   AC_CHECK_HEADERS(unistd.h stdlib.h string.h strings.h dlfcn.h dl.h)
    39     43   
    40     44   dnl Perform Tcl Extension required stuff
    41     45   TCLEXT_INIT
    42     46   
    43     47   dnl Produce output
    44         -AC_OUTPUT(Makefile pkgIndex.tcl)
           48  +AC_OUTPUT(Makefile pkgIndex.tcl tcltcc.syms)