Check-in [b491412695]
Overview
Comment:Updated to strip release library

Updated list of headers to check for

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:b491412695941b7fea4003ec09f32643202649ca
User & Date: rkeene on 2010-05-17 05:04:11
Other Links: manifest | tags
Context
2010-05-17
05:09
Fixed issue with double-free when PC/SC connection manager is unavailable

Fixed issues found from splint(1) output check-in: c70fbcca60 user: rkeene tags: trunk

05:04
Updated to strip release library

Updated list of headers to check for check-in: b491412695 user: rkeene tags: trunk

04:50
Updated to build both debug library and release library check-in: 0fae105f13 user: rkeene tags: trunk
Changes

Modified Makefile.in from [517d2e3149] to [7e5757e77e].

     5      5   DEBUGCPPFLAGS = @CPPFLAGS@ -DCACKEY_DEBUG=1 -I./pkcs11/ @DEFS@
     6      6   LDFLAGS = @LDFLAGS@
     7      7   LIBS = @LIBS@ @PTHREAD_LIBS@
     8      8   SHOBJFLAGS = @SHOBJFLAGS@
     9      9   SHOBJLDFLAGS = @SHOBJLDFLAGS@
    10     10   AR = @AR@
    11     11   RANLIB = @RANLIB@
           12  +STRIP = @STRIP@
    12     13   prefix = @prefix@
    13     14   exec_prefix = @exec_prefix@
    14     15   libdir = @libdir@
    15     16   @SET_MAKE@
    16     17   
    17     18   all:
    18     19   	$(MAKE) libcackey.@SHOBJEXT@
................................................................................
    28     29   	$(CC) $(SHOBJFLAGS) $(CPPFLAGS) $(CFLAGS) -o asn1-x509.o -c asn1-x509.c
    29     30   
    30     31   asn1-x509_g.o: asn1-x509.c asn1-x509.h config.h
    31     32   	$(CC) $(SHOBJFLAGS) $(DEBUGCPPFLAGS) $(DEBUGCFLAGS) -o asn1-x509_g.o -c asn1-x509.c
    32     33   
    33     34   libcackey.@SHOBJEXT@: cackey.o asn1-x509.o
    34     35   	$(CC) $(SHOBJFLAGS) $(CPPFLAGS) $(CFLAGS) $(SHOBJLDFLAGS) $(LDFLAGS) -o libcackey.@SHOBJEXT@ cackey.o asn1-x509.o $(LIBS)
           36  +	-$(STRIP) -g "libcackey.@SHOBJEXT@"
    35     37   
    36     38   libcackey_g.@SHOBJEXT@: cackey_g.o asn1-x509_g.o
    37     39   	$(CC) $(SHOBJFLAGS) $(DEBUGCPPFLAGS) $(DEBUGCFLAGS) $(SHOBJLDFLAGS) $(LDFLAGS) -o libcackey_g.@SHOBJEXT@ cackey_g.o asn1-x509_g.o $(LIBS)
    38     40   
    39     41   test: test.c libcackey_g.@SHOBJEXT@
    40     42   	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o test test.c -Wl,-R,. libcackey_g.@SHOBJEXT@
    41     43   
    42     44   splint-cackey.txt: cackey.c asn1-x509.c asn1-x509.h config.h
    43     45   	splint $(CPPFLAGS) -weak +posixlib -I/usr/include/PCSC -Ipkcs11 cackey.c > splint-cackey.txt
    44     46   
    45     47   install: libcackey.@SHOBJEXT@
    46     48   	-mkdir "$(DESTDIR)$(libdir)"
    47         -	cp libcackey.@SHOBJEXT@ "$(DESTDIR)$(libdir)/"
    48         -	-cp libcackey_g.@SHOBJEXT@ "$(DESTDIR)$(libdir)/"
           49  +	cp "libcackey.@SHOBJEXT@" "$(DESTDIR)$(libdir)/"
           50  +	-cp "libcackey_g.@SHOBJEXT@" "$(DESTDIR)$(libdir)/"
    49     51   
    50     52   clean:
    51     53   	rm -f libcackey.@SHOBJEXT@ libcackey_g.@SHOBJEXT@
    52     54   	rm -f cackey.o asn1-x509.o cackey_g.o asn1-x509_g.o
    53     55   	rm -f test
    54     56   	rm -f splint-cackey.txt
    55     57   

Modified configure.ac from [ebb33ac593] to [0ec6a4dc40].

    16     16   ACX_PTHREAD(, [
    17     17   	AC_WARN([Can't figure out how to compile with pthreads support, run-time will likely fail.])
    18     18   ])
    19     19   
    20     20   dnl Determine how to create static archives on this platform
    21     21   AC_CHECK_TOOL(AR, ar)
    22     22   AC_CHECK_TOOL(RANLIB, ranlib)
           23  +
           24  +dnl Determine how to strip executables
           25  +AC_CHECK_TOOL(STRIP, strip)
    23     26   
    24     27   dnl Check for all required headers
    25         -AC_CHECK_HEADERS(arpa/inet.h inttypes.h stdarg.h stdint.h stdio.h stdlib.h string.h sys/socket.h sys/types.h sys/un.h unistd.h pthread.h zlib.h,,[
           28  +AC_CHECK_HEADERS(arpa/inet.h inttypes.h stdarg.h stdint.h stdio.h stdlib.h string.h sys/socket.h sys/types.h sys/un.h unistd.h pthread.h zlib.h limits.h,,[
    26     29   	AC_WARN([Required header missing, compilation will likely fail.])
    27     30   ], [
    28     31   #ifdef HAVE_ARPA_INET_H
    29     32   #  include <arpa/inet.h>
    30     33   #endif
    31     34   #ifdef HAVE_INTTYPES_H
    32     35   #  include <inttypes.h>
................................................................................
    57     60   #endif
    58     61   #ifdef HAVE_UNISTD_H
    59     62   #  include <unistd.h>
    60     63   #endif
    61     64   #ifdef HAVE_PTHREAD_H
    62     65   #  include <pthread.h>
    63     66   #endif
           67  +#ifdef HAVE_LIMITS_H
           68  +#  include <limits.h>
           69  +#endif
    64     70   #ifdef HAVE_ZLIB_H
    65     71   #  include <zlib.h>
    66     72   #endif
    67     73   ])
    68     74   
    69     75   dnl Check for PC/SC headers and libraries
    70     76   DC_PCSC