Index: src/makefiles/Makefile.openbsd =================================================================== RCS file: /projects/cvsroot/pgsql-server/src/makefiles/Makefile.openbsd,v retrieving revision 1.8 diff -u -r1.8 Makefile.openbsd --- src/makefiles/Makefile.openbsd 29 Aug 2001 19:14:40 -0000 1.8 +++ src/makefiles/Makefile.openbsd 4 Oct 2004 21:13:50 -0000 @@ -7,11 +7,17 @@ endif DLSUFFIX = .so -CFLAGS_SL = -fpic -DPIC + +ifeq "$(findstring sparc,$(host_cpu))" "sparc" +CFLAGS_SL = -fPIC +else +CFLAGS_SL = -fpic +endif + %.so: %.o ifdef ELF_SYSTEM - $(LD) -x -Bshareable -o $@ $< + $(CC) -shared -o $@ $< else $(LD) $(LDREL) $(LDOUT) $<.obj -x $< @echo building shared object $@