summaryrefslogtreecommitdiffstats
path: root/src/util/support/Makefile.in
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2007-06-20 03:53:37 +0000
committerKen Raeburn <raeburn@mit.edu>2007-06-20 03:53:37 +0000
commit56da8ce661eaf5b6555db9be3a572cf27ce8894f (patch)
tree3c8aab6089766c909fb4bf222e2bbda438056143 /src/util/support/Makefile.in
parent86e638b30cb0c56e9d0fd0b213be0696191eb297 (diff)
downloadkrb5-56da8ce661eaf5b6555db9be3a572cf27ce8894f.tar.gz
krb5-56da8ce661eaf5b6555db9be3a572cf27ce8894f.tar.xz
krb5-56da8ce661eaf5b6555db9be3a572cf27ce8894f.zip
Move (BSD-licensed) mkstemp from libdb2 to libkrb5support, and rename
the function to krb5int_mkstemp. Generate the symbol export list for libkrb5support at build time. Declare krb5int_mkstemp in k5-platform.h. Change cc_file.c to use mkstemp unconditionally. Make libdb2.so (built for testing only) link against the libkrb5support, and use krb5int_mkstemp if mkstemp is not available. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19600 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util/support/Makefile.in')
-rw-r--r--src/util/support/Makefile.in19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/util/support/Makefile.in b/src/util/support/Makefile.in
index 78c322ec0..a89dd4d4c 100644
--- a/src/util/support/Makefile.in
+++ b/src/util/support/Makefile.in
@@ -31,7 +31,8 @@ STLIBOBJS= \
plugins.o \
errors.o \
gmt_mktime.o \
- fake-addrinfo.o
+ fake-addrinfo.o \
+ @MKSTEMP_ST_OBJ@
LIBOBJS= \
$(OUTPRE)threads.$(OBJEXT) \
@@ -39,7 +40,8 @@ LIBOBJS= \
$(OUTPRE)plugins.$(OBJEXT) \
$(OUTPRE)errors.$(OBJEXT) \
$(OUTPRE)gmt_mktime.$(OBJEXT) \
- $(OUTPRE)fake-addrinfo.$(OBJEXT)
+ $(OUTPRE)fake-addrinfo.$(OBJEXT) \
+ @MKSTEMP_OBJ@
STOBJLISTS=OBJS.ST
@@ -52,7 +54,9 @@ SRCS=\
$(srcdir)/init-addrinfo.c \
$(srcdir)/errors.c \
$(srcdir)/gmt_mktime.c \
- $(srcdir)/fake-addrinfo.c
+ $(srcdir)/fake-addrinfo.c \
+ $(srcdir)/mkstemp.c
+
SHLIB_EXPDEPS =
# Add -lm if dumping thread stats, for sqrt.
SHLIB_EXPLIBS= $(LIBS) $(DL_LIB)
@@ -76,6 +80,15 @@ $(BUILDTOP)/include/autoconf.h: $(SRCTOP)/include/autoconf.h.in
t_mktime: gmt_mktime.c
$(CC) $(ALL_CFLAGS) -DTEST_LEAP -o t_mktime $(srcdir)/gmt_mktime.c
+SHLIB_EXPORT_FILE=libkrb5support.exports
+
+libkrb5support.exports: $(srcdir)/libkrb5support-fixed.exports Makefile
+ cat $(srcdir)/libkrb5support-fixed.exports > new-exports
+ for i in @EXTRA_SUPPORT_SYMS@ .; do \
+ if test "$$i" != .; then echo $$i >> new-exports; else :; fi ; \
+ done
+ $(MV) new-exports libkrb5support.exports
+
@lib_frag@
@libobj_frag@