diff options
| author | Peter Eisentraut <peter_e@gmx.net> | 2002-09-05 18:28:46 +0000 |
|---|---|---|
| committer | Peter Eisentraut <peter_e@gmx.net> | 2002-09-05 18:28:46 +0000 |
| commit | 337da0678ab3b0fe7e339cd35c6c50ad5441a534 (patch) | |
| tree | 62b6d649585ee864a16c1922736e4c8d66ebc54b /src/backend | |
| parent | a11ea5e2a3bc47321eaff824b588c07a5974a729 (diff) | |
Assorted fixes for Cygwin:
Eliminate the mysterious games that the Cygwin build plays with the linker
flag variables. DLLLIBS is gone, use SHLIB_LINK like everyone else.
Detect cygipc in configure, after the linker flags are set up, otherwise
configure might not work at all.
Make sure everything is covered by make clean.
Fix the build of the new conversion procedure modules.
Add new DLLIMPORT markers where required.
Finally, the compiler complains if we use an explicit
-I/usr/local/include, so don't do that. Curiously, -L/usr/local/lib is
still necessary.
Diffstat (limited to 'src/backend')
| -rw-r--r-- | src/backend/Makefile | 27 | ||||
| -rw-r--r-- | src/backend/utils/mb/conversion_procs/proc.mk | 3 |
2 files changed, 11 insertions, 19 deletions
diff --git a/src/backend/Makefile b/src/backend/Makefile index 38198eb1a0b..df445615ae0 100644 --- a/src/backend/Makefile +++ b/src/backend/Makefile @@ -4,7 +4,7 @@ # # Copyright (c) 1994, Regents of the University of California # -# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.86 2002/09/04 15:45:50 tgl Exp $ +# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.87 2002/09/05 18:28:46 petere Exp $ # #------------------------------------------------------------------------- @@ -40,10 +40,16 @@ else # win postgres: $(OBJS) $(DLLINIT) postgres.def libpostgres.a $(DLLTOOL) --dllname $@$(X) --output-exp $@.exp --def postgres.def - $(CC) $(LDFLAGS) -o $@$(X) -Wl,--base-file,$@.base $@.exp $(OBJS) $(DLLLIBS) + $(CC) $(CFLAGS) $(LDFLAGS) -o $@$(X) -Wl,--base-file,$@.base $@.exp $(OBJS) $(LIBS) $(DLLTOOL) --dllname $@$(X) --base-file $@.base --output-exp $@.exp --def postgres.def - $(CC) $(LDFLAGS) -o $@$(X) $@.exp $(OBJS) $(DLLLIBS) - rm $@.exp $@.base + $(CC) $(CFLAGS) $(LDFLAGS) -o $@$(X) $@.exp $(OBJS) $(LIBS) + rm -f $@.exp $@.base + +postgres.def: $(OBJS) + $(DLLTOOL) --export-all --output-def $@ $^ + +libpostgres.a: postgres.def + $(DLLTOOL) --dllname postgres.exe --def postgres.def --output-lib $@ endif # win @@ -57,17 +63,6 @@ $(DIRS:%=%-recursive): $(top_builddir)/src/include/parser/parse.h $(top_builddir $(MAKE) -C $(subst -recursive,,$@) all -ifeq ($(MAKE_DLL), true) - -postgres.def: $(OBJS) - $(DLLTOOL) --export-all --output-def $@ $(OBJS) - -libpostgres.a: $(OBJS) $(DLLINIT) postgres.def - $(DLLTOOL) --dllname postgres.exe --def postgres.def --output-lib $@ - -endif # MAKE_DLL - - $(DLLINIT): $(DLLINIT:%.o=%.c) $(MAKE) -C $(@D) $(@F) @@ -169,10 +164,8 @@ clean: $(top_srcdir)/src/include/parser/parse.h \ $(top_builddir)/src/include/utils/fmgroids.h ifeq ($(PORTNAME), win) -ifeq ($(MAKE_DLL), true) rm -f postgres.dll postgres.def libpostgres.a endif -endif for i in $(DIRS); do $(MAKE) -C $$i clean || exit; done distclean: clean diff --git a/src/backend/utils/mb/conversion_procs/proc.mk b/src/backend/utils/mb/conversion_procs/proc.mk index 8c9279e9aaf..76fb55688af 100644 --- a/src/backend/utils/mb/conversion_procs/proc.mk +++ b/src/backend/utils/mb/conversion_procs/proc.mk @@ -1,7 +1,6 @@ SRCS += $(NAME).c OBJS += $(NAME).o -PG_CPPFLAGS := SHLIB_LINK := $(BE_DLLLIBS) SO_MAJOR_VERSION := 0 @@ -18,4 +17,4 @@ install: all uninstall: uninstall-lib clean distclean maintainer-clean: clean-lib - $(RM) $(OBJS) + rm -f $(OBJS) |
