mirror of
https://github.com/postgres/postgres.git
synced 2025-04-24 10:47:04 +03:00
Win32 patch for Makefile.shlib
Claudio Natoli
This commit is contained in:
parent
9be15f4d52
commit
c217b36e17
@ -6,7 +6,7 @@
|
|||||||
# Copyright (c) 1998, Regents of the University of California
|
# Copyright (c) 1998, Regents of the University of California
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# IDENTIFICATION
|
||||||
# $PostgreSQL: pgsql/src/Makefile.shlib,v 1.73 2003/11/29 19:51:39 pgsql Exp $
|
# $PostgreSQL: pgsql/src/Makefile.shlib,v 1.74 2003/12/01 22:23:06 momjian Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -201,6 +201,10 @@ ifeq ($(PORTNAME), cygwin)
|
|||||||
shlib := $(NAME)$(DLSUFFIX)
|
shlib := $(NAME)$(DLSUFFIX)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(PORTNAME), win32)
|
||||||
|
shlib := lib$(NAME)$(DLSUFFIX)
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(PORTNAME), beos)
|
ifeq ($(PORTNAME), beos)
|
||||||
shlib := lib$(NAME)$(DLSUFFIX)
|
shlib := lib$(NAME)$(DLSUFFIX)
|
||||||
LINK.shared = $(LD) -nostart
|
LINK.shared = $(LD) -nostart
|
||||||
@ -229,6 +233,7 @@ all-static-lib: lib$(NAME).a
|
|||||||
all-shared-lib: $(shlib)
|
all-shared-lib: $(shlib)
|
||||||
|
|
||||||
ifneq ($(PORTNAME), cygwin)
|
ifneq ($(PORTNAME), cygwin)
|
||||||
|
ifneq ($(PORTNAME), win32)
|
||||||
|
|
||||||
ifndef LORDER
|
ifndef LORDER
|
||||||
MK_NO_LORDER := true
|
MK_NO_LORDER := true
|
||||||
@ -242,12 +247,14 @@ else
|
|||||||
endif
|
endif
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
|
endif # not win32
|
||||||
endif # not cygwin
|
endif # not cygwin
|
||||||
|
|
||||||
ifeq ($(enable_shared), yes)
|
ifeq ($(enable_shared), yes)
|
||||||
|
|
||||||
ifneq ($(PORTNAME), beos)
|
ifneq ($(PORTNAME), beos)
|
||||||
ifneq ($(PORTNAME), cygwin)
|
ifneq ($(PORTNAME), cygwin)
|
||||||
|
ifneq ($(PORTNAME), win32)
|
||||||
ifneq ($(PORTNAME), aix)
|
ifneq ($(PORTNAME), aix)
|
||||||
|
|
||||||
# Normal case
|
# Normal case
|
||||||
@ -273,6 +280,16 @@ $(shlib): lib$(NAME).a
|
|||||||
|
|
||||||
endif # PORTNAME == aix
|
endif # PORTNAME == aix
|
||||||
|
|
||||||
|
else # PORTNAME == win32
|
||||||
|
|
||||||
|
# win32 case
|
||||||
|
$(shlib) lib$(NAME).a: $(OBJS)
|
||||||
|
$(DLLTOOL) --export-all --output-def $(NAME).def $(OBJS)
|
||||||
|
$(DLLWRAP) -o $(shlib) --dllname $(shlib) --def $(NAME).def $(OBJS) $(SHLIB_LINK)
|
||||||
|
$(DLLTOOL) --dllname $(shlib) --def $(NAME).def --output-lib lib$(NAME).a
|
||||||
|
|
||||||
|
endif # PORTNAME == win32
|
||||||
|
|
||||||
else # PORTNAME == cygwin
|
else # PORTNAME == cygwin
|
||||||
|
|
||||||
# Cygwin case
|
# Cygwin case
|
||||||
@ -316,6 +333,7 @@ ifeq ($(enable_shared), yes)
|
|||||||
install-lib-shared: $(shlib)
|
install-lib-shared: $(shlib)
|
||||||
$(INSTALL_SHLIB) $< $(DESTDIR)$(libdir)/$(shlib)
|
$(INSTALL_SHLIB) $< $(DESTDIR)$(libdir)/$(shlib)
|
||||||
ifneq ($(PORTNAME), cygwin)
|
ifneq ($(PORTNAME), cygwin)
|
||||||
|
ifneq ($(PORTNAME), win32)
|
||||||
ifneq ($(shlib), lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION))
|
ifneq ($(shlib), lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION))
|
||||||
cd $(DESTDIR)$(libdir) && \
|
cd $(DESTDIR)$(libdir) && \
|
||||||
rm -f lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION) && \
|
rm -f lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION) && \
|
||||||
@ -327,6 +345,7 @@ ifneq ($(shlib), lib$(NAME)$(DLSUFFIX))
|
|||||||
$(LN_S) $(shlib) lib$(NAME)$(DLSUFFIX)
|
$(LN_S) $(shlib) lib$(NAME)$(DLSUFFIX)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
endif # not win32
|
||||||
endif # not cygwin
|
endif # not cygwin
|
||||||
endif # enable_shared
|
endif # enable_shared
|
||||||
|
|
||||||
@ -361,3 +380,7 @@ endif
|
|||||||
ifeq ($(PORTNAME), cygwin)
|
ifeq ($(PORTNAME), cygwin)
|
||||||
rm -f $(NAME).dll $(NAME).def
|
rm -f $(NAME).dll $(NAME).def
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(PORTNAME), win32)
|
||||||
|
rm -f $(NAME).dll $(NAME).def
|
||||||
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user