2000-12-07 20:43:49 +01:00
|
|
|
AROPT = cr
|
2000-10-22 00:36:14 +02:00
|
|
|
|
1999-03-14 17:03:33 +01:00
|
|
|
ifdef ELF_SYSTEM
|
2000-10-07 20:43:23 +02:00
|
|
|
export_dynamic = -Wl,-E
|
2000-10-28 01:59:39 +02:00
|
|
|
rpath = -R$(libdir)
|
2001-02-10 18:17:39 +01:00
|
|
|
shlib_symbolic = -Wl,-Bsymbolic
|
1999-03-14 17:03:33 +01:00
|
|
|
endif
|
2000-10-22 00:36:14 +02:00
|
|
|
|
|
|
|
DLSUFFIX = .so
|
|
|
|
CFLAGS_SL = -fpic -DPIC
|
|
|
|
|
1997-04-12 12:33:10 +02:00
|
|
|
%.so: %.o
|
1999-03-14 17:03:33 +01:00
|
|
|
ifdef ELF_SYSTEM
|
|
|
|
$(LD) -x -Bshareable -o $@ $<
|
|
|
|
else
|
1999-12-13 23:35:27 +01:00
|
|
|
$(LD) $(LDREL) $(LDOUT) $<.obj -x $<
|
1997-04-12 12:33:10 +02:00
|
|
|
@echo building shared object $@
|
|
|
|
@rm -f $@.pic
|
|
|
|
@${AR} cq $@.pic `lorder $<.obj | tsort`
|
|
|
|
${RANLIB} $@.pic
|
|
|
|
@rm -f $@
|
|
|
|
$(LD) -x -Bshareable -Bforcearchive \
|
|
|
|
-o $@ $@.pic
|
1999-03-14 17:03:33 +01:00
|
|
|
endif
|
2001-08-29 21:14:40 +02:00
|
|
|
|
|
|
|
sqlmansect = 7
|