View | Details | Raw Unified | Return to bug 19035
Collapse All | Expand All

(-)/home/lioux/bin/ports/db/patches/patch-aa (-5 / +480 lines)
Lines 1-15 Link Here
1
--- ../dist/Makefile.in.orig	Mon Dec  7 22:05:59 1998
1
--- ../dist/Makefile.in.orig	Mon Dec  7 17:05:59 1998
2
+++ ../dist/Makefile.in	Mon Mar 29 00:59:52 1999
2
+++ ../dist/Makefile.in	Mon Jun  5 15:13:43 2000
3
@@ -43,7 +43,7 @@
3
@@ -2,12 +2,13 @@
4
 
5
 srcdir=	@srcdir@/..
6
 CPPFLAGS=-I. -I$(srcdir)/include @CPPFLAGS@
7
+SHAREDFLAGS= -fpic -DPIC
8
 CFLAGS=	-c @CFLAGS@ $(CPPFLAGS)
9
 CC=	@CC@
10
 CXXFLAGS=-c @CXXFLAGS@ $(CPPFLAGS)
11
 CXX=	@CXX@
12
-LDFLAGS=@LDFLAGS@
13
-LIBS=	@LIBS@
14
+LDFLAGS=@LDFLAGS@ -L.
15
+LIBS=	@LIBS@ -ldb2
16
 
17
 SHELL=	@db_cv_path_sh@
18
 ar=	@db_cv_path_ar@ cr
19
@@ -43,85 +44,91 @@
4
 LOBJS=	@LIBOBJS@
20
 LOBJS=	@LIBOBJS@
5
 POBJS=	err.o getlong.o
21
 POBJS=	err.o getlong.o
6
 
22
 
7
-libdb=	libdb.a
23
-libdb=	libdb.a
24
-all: $(libdb) $(PROGS)
8
+libdb=  libdb2.a
25
+libdb=  libdb2.a
9
 all: $(libdb) $(PROGS)
26
+libdbso=  libdb2.so.0
27
+all: $(libdb) $(libdbso) $(PROGS)
10
 
28
 
11
 $(libdb): db.h $(OBJS) $(LOBJS)
29
 $(libdb): db.h $(OBJS) $(LOBJS)
12
@@ -141,11 +141,11 @@
30
 	$(rm) -f $@
31
 	$(ar) $@ $(OBJS) $(LOBJS)
32
 	test ! -f $(ranlib) || $(ranlib) $@
33
 
34
+$(libdbso): db.h $(OBJS:S/.o$/.so/g) $(LOBJS:S/.o$/.so/g)
35
+	$(rm) -f $@
36
+	$(CXX) -shared -Wl,-x -Wl,-assert -Wl,pure-text -Wl,-soname,$@ -o $@ $(OBJS:S/.o$/.so/g) $(LOBJS:S/.o$/.so/g)
37
+	ln -sf $@ libdb2.so
38
+
39
 DBA=	db_archive.o $(POBJS)
40
-db_archive: $(DBA) $(libdb)
41
-	$(CC) -o $@ $(LDFLAGS) $(DBA) $(libdb) $(LIBS)
42
+db_archive: $(DBA) $(libdbso)
43
+	$(CC) -o $@ $(LDFLAGS) $(DBA) $(LIBS)
44
 
45
 DBB=	db_checkpoint.o $(POBJS)
46
-db_checkpoint: $(DBB) $(libdb)
47
-	$(CC) -o $@ $(LDFLAGS) $(DBB) $(libdb) $(LIBS)
48
+db_checkpoint: $(DBB) $(libdbso)
49
+	$(CC) -o $@ $(LDFLAGS) $(DBB) $(LIBS)
50
 
51
 DBC=	db_deadlock.o $(POBJS)
52
-db_deadlock: $(DBC) $(libdb)
53
-	$(CC) -o $@ $(LDFLAGS) $(DBC) $(libdb) $(LIBS)
54
+db_deadlock: $(DBC) $(libdbso)
55
+	$(CC) -o $@ $(LDFLAGS) $(DBC) $(LIBS)
56
 
57
 DBD=	db_dump.o $(POBJS)
58
-db_dump: $(DBD) $(libdb)
59
-	$(CC) -o $@ $(LDFLAGS) $(DBD) $(libdb) $(LIBS)
60
+db_dump: $(DBD) $(libdbso)
61
+	$(CC) -o $@ $(LDFLAGS) $(DBD) $(LIBS)
62
 
63
 DBE=	db_dump185.o $(POBJS)
64
 db_dump185: $(DBE)
65
 	$(CC) -o $@ $(LDFLAGS) $(DBE) $(LIBS)
66
 
67
 DBF=	db_load.o $(POBJS)
68
-db_load: $(DBF) $(libdb)
69
-	$(CC) -o $@ $(LDFLAGS) $(DBF) $(libdb) $(LIBS)
70
+db_load: $(DBF) $(libdbso)
71
+	$(CC) -o $@ $(LDFLAGS) $(DBF) $(LIBS)
72
 
73
 DBG=	db_printlog.o $(POBJS)
74
-db_printlog: $(DBG) $(libdb)
75
-	$(CC) -o $@ $(LDFLAGS) $(DBG) $(libdb) $(LIBS)
76
+db_printlog: $(DBG) $(libdbso)
77
+	$(CC) -o $@ $(LDFLAGS) $(DBG) $(LIBS)
78
 
79
 DBH=	db_recover.o $(POBJS)
80
-db_recover: $(DBH) $(libdb)
81
-	$(CC) -o $@ $(LDFLAGS) $(DBH) $(libdb) $(LIBS)
82
+db_recover: $(DBH) $(libdbso)
83
+	$(CC) -o $@ $(LDFLAGS) $(DBH) $(LIBS)
84
 
85
 DBI=	db_stat.o $(POBJS)
86
-db_stat: $(DBI) $(libdb)
87
-	$(CC) -o $@ $(LDFLAGS) $(DBI) $(libdb) $(LIBS)
88
+db_stat: $(DBI) $(libdbso)
89
+	$(CC) -o $@ $(LDFLAGS) $(DBI) $(LIBS)
90
 
91
 EPROGS=	ex_access ex_appinit ex_btrec ex_lock ex_mpool ex_thread ex_tpcb
92
 DBJ=	ex_access.o
93
-ex_access: $(DBJ) $(libdb)
94
-	$(CC) -o $@ $(LDFLAGS) $(DBJ) $(libdb) $(LIBS)
95
+ex_access: $(DBJ) $(libdbso)
96
+	$(CC) -o $@ $(LDFLAGS) $(DBJ) $(LIBS)
97
 
98
 DBK=	ex_appinit.o
99
-ex_appinit: $(DBK) $(libdb)
100
-	$(CC) -o $@ $(LDFLAGS) $(DBK) $(libdb) $(LIBS)
101
+ex_appinit: $(DBK) $(libdbso)
102
+	$(CC) -o $@ $(LDFLAGS) $(DBK) $(LIBS)
103
 
104
 DBL=	ex_btrec.o
105
-ex_btrec: $(DBL) $(libdb)
106
-	$(CC) -o $@ $(LDFLAGS) $(DBL) $(libdb) $(LIBS)
107
+ex_btrec: $(DBL) $(libdbso)
108
+	$(CC) -o $@ $(LDFLAGS) $(DBL) $(LIBS)
109
 
110
 DBM=	ex_lock.o $(POBJS)
111
-ex_lock: $(DBM) $(libdb)
112
-	$(CC) -o $@ $(LDFLAGS) $(DBM) $(libdb) $(LIBS)
113
+ex_lock: $(DBM) $(libdbso)
114
+	$(CC) -o $@ $(LDFLAGS) $(DBM) $(LIBS)
115
 
116
 DBN=	ex_mpool.o
117
-ex_mpool: $(DBN) $(libdb)
118
-	$(CC) -o $@ $(LDFLAGS) $(DBN) $(libdb) $(LIBS)
119
+ex_mpool: $(DBN) $(libdbso)
120
+	$(CC) -o $@ $(LDFLAGS) $(DBN) $(LIBS)
121
 
122
 DBO=	ex_thread.o
123
-ex_thread: $(DBO) $(libdb)
124
-	$(CC) -o $@ $(LDFLAGS) $(DBO) $(libdb) $(LIBS)
125
+ex_thread: $(DBO) $(libdbso)
126
+	$(CC) -o $@ $(LDFLAGS) $(DBO) $(LIBS)
127
 
128
 DBP=	ex_tpcb.o $(POBJS)
129
-ex_tpcb: $(DBP) $(libdb)
130
-	$(CC) -o $@ $(LDFLAGS) $(DBP) $(libdb) $(LIBS)
131
+ex_tpcb: $(DBP) $(libdbso)
132
+	$(CC) -o $@ $(LDFLAGS) $(DBP) $(LIBS)
133
 
134
 DBT=	tclAppInit.o tcl_dbm.o tcl_hsearch.o tcl_lock.o tcl_log.o tcl_mpool.o \
135
 	tcl_mutex.o tcl_ndbm.o tcl_txn.o utils.o $(POBJS)
136
 
137
 dbtest: .dbtestrc
138
-dbtest: $(DBT) $(libdb)
139
-	$(CC) -o $@ $(LDFLAGS) $(DBT) $(libdb) $(LIBS)
140
+dbtest: $(DBT) $(libdbso)
141
+	$(CC) -o $@ $(LDFLAGS) $(DBT) $(LIBS)
142
 
143
 AOBJS=	err.o getcwd.o getlong.o getopt.o memcmp.o memcpy.o memmove.o \
144
 	raise.o snprintf.o strerror.o strsep.o vsnprintf.o
145
@@ -131,8 +138,8 @@
146
 	$(rm) -f $(DBA) $(DBB) $(DBC) $(DBD) $(DBE) $(DBF) $(DBG) $(DBH)
147
 	$(rm) -f $(DBI) $(DBJ) $(DBK) $(DBL) $(DBM) $(DBN) $(DBO) $(DBP)
148
 	$(rm) -f $(DBT)
149
-	$(rm) -f $(PROGS) $(EPROGS) $(POBJS) $(LOBJS) @build_test@
150
-	$(rm) -f core *.core .dbtestrc $(libdb)
151
+	$(rm) -f $(PROGS) $(EPROGS) $(POBJS) $(LOBJS) *.so @build_test@
152
+	$(rm) -f core *.core .dbtestrc $(libdb) $(libdbso)
153
 
154
 depend obj:
155
 
156
@@ -141,11 +148,11 @@
13
 	$(rm) -f confdefs.h db.h db_int.h db_185.h include.tcl
157
 	$(rm) -f confdefs.h db.h db_int.h db_185.h include.tcl
14
 
158
 
15
 prefix=	@prefix@
159
 prefix=	@prefix@
Lines 26-28 Link Here
26
 
170
 
27
 dmode=	755
171
 dmode=	755
28
 emode=	555
172
 emode=	555
173
@@ -170,6 +177,9 @@
174
 	@cd $(libdir) && $(rm) -f $(libdb)
175
 	@$(cp) -p $(libdb) $(libdir)
176
 	@cd $(libdir) && $(chmod) $(fmode) $(libdb)
177
+	@$(cp) -p $(libdbso) $(libdir)
178
+	@cd $(libdir) && $(chmod) $(fmode) $(libdbso)
179
+	ln -sf $(libdbso) $(libdir)/libdb2.so
180
 	@echo "Installing DB utilities: $(bindir) ..."
181
 	@test -d $(bindir) || \
182
 	    ($(mkdir) -p $(bindir) && $(chmod) $(dmode) $(bindir))
183
@@ -506,3 +516,320 @@
184
 	$(CC) $(CFLAGS) $?
185
 vsnprintf.o: $(srcdir)/clib/vsnprintf.c
186
 	$(CC) $(CFLAGS) $?
187
+
188
+# Shared build
189
+# Programs.
190
+db_archive.so: $(srcdir)/db_archive/db_archive.c
191
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
192
+db_checkpoint.so: $(srcdir)/db_checkpoint/db_checkpoint.c
193
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
194
+db_deadlock.so: $(srcdir)/db_deadlock/db_deadlock.c
195
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
196
+db_dump.so: $(srcdir)/db_dump/db_dump.c
197
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
198
+db_dump185.so: $(srcdir)/db_dump185/db_dump185.c
199
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
200
+db_load.so: $(srcdir)/db_load/db_load.c
201
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
202
+db_printlog.so: $(srcdir)/db_printlog/db_printlog.c
203
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
204
+db_recover.so: $(srcdir)/db_recover/db_recover.c
205
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
206
+db_stat.so: $(srcdir)/db_stat/db_stat.c
207
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
208
+
209
+# Examples.
210
+ex_access.so: $(srcdir)/examples/ex_access.c
211
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
212
+ex_appinit.so: $(srcdir)/examples/ex_appinit.c
213
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
214
+ex_btrec.so: $(srcdir)/examples/ex_btrec.c
215
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
216
+ex_lock.so: $(srcdir)/examples/ex_lock.c
217
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
218
+ex_mpool.so: $(srcdir)/examples/ex_mpool.c
219
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
220
+ex_thread.so: $(srcdir)/examples/ex_thread.c
221
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
222
+ex_tpcb.so: $(srcdir)/examples/ex_tpcb.c
223
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
224
+
225
+# DB files.
226
+db.so: $(srcdir)/db/db.c
227
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
228
+db_am.so: $(srcdir)/db/db_am.c
229
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
230
+db_auto.so: $(srcdir)/db/db_auto.c
231
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
232
+db_conv.so: $(srcdir)/db/db_conv.c
233
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
234
+db_dispatch.so: $(srcdir)/db/db_dispatch.c
235
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
236
+db_dup.so: $(srcdir)/db/db_dup.c
237
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
238
+db_iface.so: $(srcdir)/db/db_iface.c
239
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
240
+db_join.so: $(srcdir)/db/db_join.c
241
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
242
+db_overflow.so: $(srcdir)/db/db_overflow.c
243
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
244
+db_pr.so: $(srcdir)/db/db_pr.c
245
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
246
+db_rec.so: $(srcdir)/db/db_rec.c
247
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
248
+db_ret.so: $(srcdir)/db/db_ret.c
249
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
250
+
251
+# Btree source files.
252
+bt_compare.so: $(srcdir)/btree/bt_compare.c
253
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
254
+bt_conv.so: $(srcdir)/btree/bt_conv.c
255
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
256
+bt_curadj.so: $(srcdir)/btree/bt_curadj.c
257
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
258
+bt_cursor.so: $(srcdir)/btree/bt_cursor.c
259
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
260
+bt_delete.so: $(srcdir)/btree/bt_delete.c
261
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
262
+bt_open.so: $(srcdir)/btree/bt_open.c
263
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
264
+bt_page.so: $(srcdir)/btree/bt_page.c
265
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
266
+bt_put.so: $(srcdir)/btree/bt_put.c
267
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
268
+bt_rec.so: $(srcdir)/btree/bt_rec.c
269
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
270
+bt_recno.so: $(srcdir)/btree/bt_recno.c
271
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
272
+bt_rsearch.so: $(srcdir)/btree/bt_rsearch.c
273
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
274
+bt_search.so: $(srcdir)/btree/bt_search.c
275
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
276
+bt_split.so: $(srcdir)/btree/bt_split.c
277
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
278
+bt_stack.so: $(srcdir)/btree/bt_stack.c
279
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
280
+bt_stat.so: $(srcdir)/btree/bt_stat.c
281
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
282
+btree_auto.so: $(srcdir)/btree/btree_auto.c
283
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
284
+
285
+# C++ interface files.
286
+cxx_app.so: $(srcdir)/cxx/cxx_app.cpp
287
+	$(CXX) $(CXXFLAGS) $(SHAREDFLAGS) $? -o $@
288
+cxx_except.so: $(srcdir)/cxx/cxx_except.cpp
289
+	$(CXX) $(CXXFLAGS) $(SHAREDFLAGS) $? -o $@
290
+cxx_lock.so: $(srcdir)/cxx/cxx_lock.cpp
291
+	$(CXX) $(CXXFLAGS) $(SHAREDFLAGS) $? -o $@
292
+cxx_log.so: $(srcdir)/cxx/cxx_log.cpp
293
+	$(CXX) $(CXXFLAGS) $(SHAREDFLAGS) $? -o $@
294
+cxx_mpool.so: $(srcdir)/cxx/cxx_mpool.cpp
295
+	$(CXX) $(CXXFLAGS) $(SHAREDFLAGS) $? -o $@
296
+cxx_table.so: $(srcdir)/cxx/cxx_table.cpp
297
+	$(CXX) $(CXXFLAGS) $(SHAREDFLAGS) $? -o $@
298
+cxx_txn.so: $(srcdir)/cxx/cxx_txn.cpp
299
+	$(CXX) $(CXXFLAGS) $(SHAREDFLAGS) $? -o $@
300
+
301
+# Hash source files.
302
+hash_auto.so: $(srcdir)/hash/hash_auto.c
303
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
304
+hash.so: $(srcdir)/hash/hash.c
305
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
306
+hash_conv.so: $(srcdir)/hash/hash_conv.c
307
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
308
+hash_dup.so: $(srcdir)/hash/hash_dup.c
309
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
310
+hash_func.so: $(srcdir)/hash/hash_func.c
311
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
312
+hash_page.so: $(srcdir)/hash/hash_page.c
313
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
314
+hash_rec.so: $(srcdir)/hash/hash_rec.c
315
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
316
+hash_stat.so: $(srcdir)/hash/hash_stat.c
317
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
318
+
319
+# Lock source files.
320
+lock.so: $(srcdir)/lock/lock.c
321
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
322
+lock_conflict.so:$(srcdir)/lock/lock_conflict.c
323
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
324
+lock_deadlock.so:$(srcdir)/lock/lock_deadlock.c
325
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
326
+lock_region.so:$(srcdir)/lock/lock_region.c
327
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
328
+lock_util.so:$(srcdir)/lock/lock_util.c
329
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
330
+
331
+# Log source files.
332
+log.so: $(srcdir)/log/log.c
333
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
334
+log_archive.so: $(srcdir)/log/log_archive.c
335
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
336
+log_auto.so: $(srcdir)/log/log_auto.c
337
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
338
+log_compare.so: $(srcdir)/log/log_compare.c
339
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
340
+log_findckp.so: $(srcdir)/log/log_findckp.c
341
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
342
+log_get.so: $(srcdir)/log/log_get.c
343
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
344
+log_put.so: $(srcdir)/log/log_put.c
345
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
346
+log_rec.so: $(srcdir)/log/log_rec.c
347
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
348
+log_register.so: $(srcdir)/log/log_register.c
349
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
350
+
351
+# Mpool source files.
352
+mp_bh.so: $(srcdir)/mp/mp_bh.c
353
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
354
+mp_fget.so: $(srcdir)/mp/mp_fget.c
355
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
356
+mp_fopen.so: $(srcdir)/mp/mp_fopen.c
357
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
358
+mp_fput.so: $(srcdir)/mp/mp_fput.c
359
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
360
+mp_fset.so: $(srcdir)/mp/mp_fset.c
361
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
362
+mp_open.so: $(srcdir)/mp/mp_open.c
363
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
364
+mp_pr.so: $(srcdir)/mp/mp_pr.c
365
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
366
+mp_region.so: $(srcdir)/mp/mp_region.c
367
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
368
+mp_sync.so: $(srcdir)/mp/mp_sync.c
369
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
370
+
371
+# Mutex source files.
372
+mutex.so: $(srcdir)/mutex/mutex.c
373
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
374
+# XXX
375
+# UTS4 spinlocks
376
+uts4_cc.so: $(srcdir)/mutex/uts4_cc.s
377
+	$(AS) $(ASFLAGS) $(SHAREDFLAGS) -o $@ $? -o $@
378
+
379
+# Transaction source files.
380
+txn.so: $(srcdir)/txn/txn.c
381
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
382
+txn_auto.so: $(srcdir)/txn/txn_auto.c
383
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
384
+txn_rec.so: $(srcdir)/txn/txn_rec.c
385
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
386
+
387
+# XA source files.
388
+xa.so: $(srcdir)/xa/xa.c
389
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
390
+xa_db.so: $(srcdir)/xa/xa_db.c
391
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
392
+xa_map.so: $(srcdir)/xa/xa_map.c
393
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
394
+
395
+# Historic interfaces.
396
+hsearch.so: $(srcdir)/hsearch/hsearch.c
397
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
398
+dbm.so: $(srcdir)/dbm/dbm.c
399
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
400
+db185.so: $(srcdir)/db185/db185.c
401
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
402
+
403
+# Common source files.
404
+db_appinit.so: $(srcdir)/common/db_appinit.c
405
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
406
+db_apprec.so: $(srcdir)/common/db_apprec.c
407
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
408
+db_byteorder.so: $(srcdir)/common/db_byteorder.c
409
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
410
+db_err.so: $(srcdir)/common/db_err.c
411
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
412
+db_log2.so: $(srcdir)/common/db_log2.c
413
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
414
+db_region.so: $(srcdir)/common/db_region.c
415
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
416
+db_salloc.so: $(srcdir)/common/db_salloc.c
417
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
418
+db_shash.so: $(srcdir)/common/db_shash.c
419
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
420
+
421
+# OS specific source files.
422
+os_abs.so: $(srcdir)/os/os_abs.c
423
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
424
+os_alloc.so: $(srcdir)/os/os_alloc.c
425
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
426
+os_config.so: $(srcdir)/os/os_config.c
427
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
428
+os_dir.so: $(srcdir)/os/os_dir.c
429
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
430
+os_fid.so: $(srcdir)/os/os_fid.c
431
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
432
+os_fsync.so: $(srcdir)/os/os_fsync.c
433
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
434
+os_map.so: $(srcdir)/os/os_map.c
435
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
436
+os_oflags.so: $(srcdir)/os/os_oflags.c
437
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
438
+os_open.so: $(srcdir)/os/os_open.c
439
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
440
+os_rpath.so: $(srcdir)/os/os_rpath.c
441
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
442
+os_rw.so: $(srcdir)/os/os_rw.c
443
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
444
+os_seek.so: $(srcdir)/os/os_seek.c
445
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
446
+os_sleep.so: $(srcdir)/os/os_sleep.c
447
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
448
+os_spin.so: $(srcdir)/os/os_spin.c
449
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
450
+os_stat.so: $(srcdir)/os/os_stat.c
451
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
452
+os_tmpdir.so: $(srcdir)/os/os_tmpdir.c
453
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
454
+os_unlink.so: $(srcdir)/os/os_unlink.c
455
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
456
+
457
+# Test programs.
458
+tclAppInit.so: $(srcdir)/test/tclAppInit.c
459
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
460
+tcl_dbm.so: $(srcdir)/test/tcl_dbm.c
461
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
462
+tcl_hsearch.so: $(srcdir)/test/tcl_hsearch.c
463
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
464
+tcl_lock.so: $(srcdir)/test/tcl_lock.c
465
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
466
+tcl_log.so: $(srcdir)/test/tcl_log.c
467
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
468
+tcl_mpool.so: $(srcdir)/test/tcl_mpool.c
469
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
470
+tcl_mutex.so: $(srcdir)/test/tcl_mutex.c
471
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
472
+tcl_ndbm.so: $(srcdir)/test/tcl_ndbm.c
473
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
474
+tcl_txn.so: $(srcdir)/test/tcl_txn.c
475
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
476
+utils.so: $(srcdir)/test/utils.c
477
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
478
+
479
+# Replacement source files.
480
+err.so: $(srcdir)/clib/err.c
481
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
482
+getcwd.so: $(srcdir)/clib/getcwd.c
483
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
484
+getlong.so: $(srcdir)/clib/getlong.c
485
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
486
+getopt.so: $(srcdir)/clib/getopt.c
487
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
488
+memcmp.so: $(srcdir)/clib/memcmp.c
489
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
490
+memcpy.so: $(srcdir)/clib/memmove.c
491
+	$(CC) -DMEMCOPY $(CFLAGS) $(SHAREDFLAGS) $? -o $@
492
+memmove.so: $(srcdir)/clib/memmove.c
493
+	$(CC) -DMEMMOVE $(CFLAGS) $(SHAREDFLAGS) $? -o $@
494
+raise.so: $(srcdir)/clib/raise.c
495
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
496
+snprintf.so: $(srcdir)/clib/snprintf.c
497
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
498
+strerror.so: $(srcdir)/clib/strerror.c
499
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
500
+strsep.so: $(srcdir)/clib/strsep.c
501
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
502
+vsnprintf.so: $(srcdir)/clib/vsnprintf.c
503
+	$(CC) $(CFLAGS) $(SHAREDFLAGS) $? -o $@
(-)/home/lioux/bin/ports/db/pkg/PLIST (+4 lines)
Lines 2-7 Link Here
2
include/db2/db_cxx.h
2
include/db2/db_cxx.h
3
include/db2/db_185.h
3
include/db2/db_185.h
4
lib/libdb2.a
4
lib/libdb2.a
5
lib/libdb2.so
6
lib/libdb2.so.0
5
bin/db_archive
7
bin/db_archive
6
bin/db_checkpoint
8
bin/db_checkpoint
7
bin/db_deadlock
9
bin/db_deadlock
Lines 560-562 Link Here
560
@dirrm share/doc/db2/api_java
562
@dirrm share/doc/db2/api_java
561
@dirrm share/doc/db2/images
563
@dirrm share/doc/db2/images
562
@dirrm share/doc/db2
564
@dirrm share/doc/db2
565
@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B
566
@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R

Return to bug 19035