2000-12-07 20:43:49 +01:00
|
|
|
AROPT = cr
|
2000-10-22 00:36:14 +02:00
|
|
|
|
1999-05-17 06:13:29 +02:00
|
|
|
ifdef ELF_SYSTEM
|
2004-12-21 19:47:42 +01:00
|
|
|
export_dynamic = -Wl,-export-dynamic
|
|
|
|
rpath = -Wl,-R$(rpathdir)
|
1999-05-17 06:13:29 +02:00
|
|
|
endif
|
|
|
|
|
2000-10-22 00:36:14 +02:00
|
|
|
DLSUFFIX = .so
|
2004-10-12 01:27:23 +02:00
|
|
|
|
2005-08-12 22:57:11 +02:00
|
|
|
CFLAGS_SL = -fPIC -DPIC
|
2005-08-24 22:20:38 +02:00
|
|
|
|
|
|
|
ifeq ($(findstring i386,$(host_cpu)), i386)
|
|
|
|
allow_nonpic_in_shlib = yes
|
2004-10-12 01:27:23 +02:00
|
|
|
endif
|
|
|
|
|
2000-10-22 00:36:14 +02:00
|
|
|
|
1998-10-27 05:32:02 +01:00
|
|
|
%.so: %.o
|
1999-05-17 06:13:29 +02:00
|
|
|
ifdef ELF_SYSTEM
|
|
|
|
$(LD) -x -shared -o $@ $<
|
|
|
|
else
|
1999-12-13 23:35:27 +01:00
|
|
|
$(LD) $(LDREL) $(LDOUT) $<.obj -x $<
|
1998-10-27 05:32:02 +01:00
|
|
|
@echo building shared object $@
|
|
|
|
@rm -f $@.pic
|
|
|
|
@${AR} cq $@.pic `lorder $<.obj | tsort`
|
|
|
|
${RANLIB} $@.pic
|
|
|
|
@rm -f $@
|
1998-11-02 06:30:10 +01:00
|
|
|
$(LD) -x -Bshareable -Bforcearchive -o $@ $@.pic
|
1998-10-31 04:58:55 +01:00
|
|
|
endif
|
2001-08-29 21:14:40 +02:00
|
|
|
|
|
|
|
sqlmansect = 7
|