4 export_dynamic = -Wl,-E
5 rpath = -Wl,-R'$(rpathdir)'
10 ifeq ($(findstring sparc,$(host_cpu)), sparc)
11 CFLAGS_SL = -fPIC -DPIC
13 CFLAGS_SL = -fpic -DPIC
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