Index: src/template/sco =================================================================== RCS file: /home/projects/pgsql/cvsroot/pgsql/src/template/sco,v retrieving revision 1.7 diff -c -r1.7 sco *** src/template/sco 2000/10/21 22:36:14 1.7 --- src/template/sco 2001/04/22 10:27:21 *************** *** 1,2 **** ! CFLAGS= ! CC="$CC -b elf" --- 1,6 ---- ! if test "$GCC" = yes; then ! CFLAGS=-02 ! else ! CFLAGS=-O ! CC="$CC -b elf" ! fi Index: src/makefiles/Makefile.sco =================================================================== RCS file: /home/projects/pgsql/cvsroot/pgsql/src/makefiles/Makefile.sco,v retrieving revision 1.7 diff -c -r1.7 Makefile.sco *** src/makefiles/Makefile.sco 2000/12/07 19:43:49 1.7 --- src/makefiles/Makefile.sco 2001/04/22 10:27:29 *************** *** 1,9 **** - override CFLAGS += -dy - export_dynamic = -W l,-Bexport AROPT = cr DLSUFFIX = .so ! CFLAGS_SL = -K PIC %.so: %.o $(LD) -G -Bdynamic -o $@ $< --- 1,18 ---- AROPT = cr + export_dynamic = -Wl,-Bexport + shlib_symbolic = -Wl,-Bsymbolic DLSUFFIX = .so ! ifeq ($(GCC), yes) ! CFLAGS_SL = -fpic ! else ! CFLAGS_SL = -Kpic ! endif ! ifeq ($(GXX), yes) ! CXXFLAGS_SL = -fpic ! else ! CXXFLAGS_SL = -Kpic ! endif %.so: %.o $(LD) -G -Bdynamic -o $@ $< Index: src/Makefile.shlib =================================================================== RCS file: /home/projects/pgsql/cvsroot/pgsql/src/Makefile.shlib,v retrieving revision 1.49 diff -c -r1.49 Makefile.shlib *** src/Makefile.shlib 2001/03/27 14:56:20 1.49 --- src/Makefile.shlib 2001/04/22 10:27:43 *************** *** 194,199 **** --- 194,217 ---- LINK.shared = $(LD) -shared -expect_unresolved '*' endif + ifeq ($(PORTNAME), sco) + shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION) + ifndef cplusplus + ifeq ($(GCC), yes) + LINK.shared = $(CC) -shared + else + LINK.shared = $(CC) -G + endif + else + ifeq ($(GXX), yes) + LINK.shared = $(CXX) -shared + else + LINK.shared = $(CXX) -G + endif + endif + LINK.shared += -Wl,-z,text -Wl,-h,$(soname) + endif + ifeq ($(PORTNAME), svr4) shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION) LINK.shared = $(LD) -G