--- postgresql-9.4.1/src/Makefile.shlib.orig 2015-02-10 19:14:10.984800000 +0300 +++ postgresql-9.4.1/src/Makefile.shlib 2015-02-10 19:14:16.554000000 +0300 @@ -86,7 +86,7 @@ # Naming convention for dynamically loadable modules shlib = $(NAME)$(DLSUFFIX) endif -stlib = lib$(NAME).a +stlib = lib$(NAME).dll.a ifndef soname # additional flags for backend modules --- postgresql-9.4.1/src/backend/Makefile.orig 2015-02-10 21:01:34.928800000 +0300 +++ postgresql-9.4.1/src/backend/Makefile 2015-02-10 21:03:43.819000000 +0300 @@ -79,9 +79,9 @@ LIBS += -lsecur32 postgres: $(OBJS) $(WIN32RES) - $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_EX) -Wl,--stack=$(WIN32_STACK_RLIMIT) -Wl,--export-all-symbols -Wl,--out-implib=libpostgres.a $(call expand_subsys,$(OBJS)) $(WIN32RES) $(LIBS) -o $@$(X) + $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_EX) -Wl,--stack=$(WIN32_STACK_RLIMIT) -Wl,--export-all-symbols -Wl,--out-implib=libpostgres.dll.a $(call expand_subsys,$(OBJS)) $(WIN32RES) $(LIBS) -o $@$(X) -libpostgres.a: postgres ; +libpostgres.dll.a: postgres ; endif # win32 @@ -207,7 +207,7 @@ endif ifeq ($(PORTNAME), win32) ifeq ($(MAKE_DLL), true) - $(INSTALL_DATA) libpostgres.a '$(DESTDIR)$(libdir)/libpostgres.a' + $(INSTALL_DATA) libpostgres.dll.a '$(DESTDIR)$(libdir)/libpostgres.dll.a' endif endif $(MAKE) -C catalog install-data @@ -265,7 +265,7 @@ endif ifeq ($(PORTNAME), win32) ifeq ($(MAKE_DLL), true) - rm -f '$(DESTDIR)$(libdir)/libpostgres.a' + rm -f '$(DESTDIR)$(libdir)/libpostgres.dll.a' endif endif $(MAKE) -C catalog uninstall-data @@ -288,7 +288,7 @@ rm -f postgres.dll libpostgres.a endif ifeq ($(PORTNAME), win32) - rm -f postgres.dll libpostgres.a $(WIN32RES) + rm -f postgres.dll libpostgres.dll.a $(WIN32RES) endif distclean: clean