1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-02 04:21:28 +03:00

Shared library and GCC support for SCO OpenServer.

This commit is contained in:
Peter Eisentraut
2001-05-07 20:43:28 +00:00
parent 5fdae774a1
commit f7bfb5518d
3 changed files with 36 additions and 5 deletions

View File

@@ -1,9 +1,18 @@
override CFLAGS += -dy
export_dynamic = -W l,-Bexport
AROPT = cr
export_dynamic = -Wl,-Bexport
shlib_symbolic = -Wl,-Bsymbolic
DLSUFFIX = .so
ifeq ($(GCC), yes)
CFLAGS_SL = -fpic
else
CFLAGS_SL = -K PIC
endif
ifeq ($(GXX), yes)
CXXFLAGS_SL = -fpic
else
CXXFLAGS_SL = -K PIC
endif
%.so: %.o
$(LD) -G -Bdynamic -o $@ $<