4 export_dynamic = -Wl,-export-dynamic
5 rpath = -Wl,-R'$(rpathdir)'
10 CFLAGS_SL = -fPIC -DPIC
12 ifeq ($(findstring i386,$(host_cpu)), i386)
13 allow_nonpic_in_shlib = yes
19 $(CC) $(CFLAGS) -shared -o $@ $<
21 $(LD) $(LDREL) $(LDOUT) $<.obj -x $<
22 @echo building shared object $@
24 @${AR} cq $@.pic $<.obj
27 $(LD) -x -Bshareable -Bforcearchive -o $@ $@.pic