vibhorkum / pg_background

pg_background
GNU General Public License v3.0
136 stars 35 forks source link

make file not working with MinGW #20

Closed legrandlegrand closed 3 years ago

legrandlegrand commented 4 years ago

here is my modified file:

MODULE_big = pg_background OBJS = pg_background.o

EXTENSION = pg_background DATA = pg_background--1.0.sql

ifdef USE_PGXS PG_CONFIG = pg_config PGXS := $(shell $(PG_CONFIG) --pgxs) include $(PGXS) else subdir = contrib/pg_background top_builddir = ../.. include $(top_builddir)/src/Makefile.global include $(top_srcdir)/contrib/contrib-global.mk endif

rjuju commented 3 years ago

Hi @legrandlegrand

IIUC MinGW can't work with pgxs infrastructure right? However your modified makefile assumes that pg_background is placed withing postgres' contrib, I'm not sure that's the best way to go.

legrandlegrand commented 3 years ago

Hello Julien,

It is an old post, probably that it wasn't compiling properly on MinGW !? At that time, I found this quick and dirty solution (copying an other Makefile ...).

I won't be able to help now as I don't use this env anymore :o( So my problem is solved, as this issue.

Regards PAscal

rjuju commented 3 years ago

Thanks for the clarification @legrandlegrand !