4 export_dynamic = -Wl,-E
5 rpath = -Wl,-R'$(rpathdir)'
7 rpath = -Wl,-R'$(rpathdir)'
12 ifeq ($(findstring sparc,$(host_cpu)), sparc)
13 CFLAGS_SL = -fPIC -DPIC
15 CFLAGS_SL = -fpic -DPIC
19 # Rule for building a shared library from a single .o file
22 $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -shared -o $@ $<
24 $(LD) $(LDREL) $(LDOUT) $<.obj -x $<
25 @echo building shared object $@
27 @${AR} cq $@.pic $<.obj
30 $(LD) -x -Bshareable -Bforcearchive -o $@ $@.pic