|
6 | 6 | # Copyright (c) 1998, Regents of the University of California
|
7 | 7 | #
|
8 | 8 | # IDENTIFICATION
|
9 |
| -# $PostgreSQL: pgsql/src/Makefile.shlib,v 1.74 2003/12/01 22:23:06 momjian Exp $ |
| 9 | +# $PostgreSQL: pgsql/src/Makefile.shlib,v 1.75 2004/05/12 21:56:27 momjian Exp $ |
10 | 10 | #
|
11 | 11 | #-------------------------------------------------------------------------
|
12 | 12 |
|
|
26 | 26 | # additional stuff to put in its link command
|
27 | 27 | # (If you want a patchlevel, include it in SO_MINOR_VERSION, e.g., "6.2".)
|
28 | 28 | #
|
| 29 | +# Optional flags when building DLL's (only applicable to win32 and cygwin |
| 30 | +# platforms). |
| 31 | +# DLLTOOL_DEFFLAGS Additional flags when creating the dll .def file |
| 32 | +# DLLTOOL_LIBFLAGS Additional flags when creating the lib<module>.a file |
| 33 | +# DLLWRAP_FLAGS Additional flags to dllwrap |
| 34 | +# |
29 | 35 | # The module Makefile must also include
|
30 | 36 | # $(top_builddir)/src/Makefile.global before including this file.
|
31 | 37 | # (Makefile.global sets PORTNAME and other needed symbols.)
|
@@ -284,19 +290,19 @@ else # PORTNAME == win32
|
284 | 290 |
|
285 | 291 | # win32 case
|
286 | 292 | $(shlib) lib$(NAME).a: $(OBJS)
|
287 |
| - $(DLLTOOL) --export-all --output-def $(NAME).def $(OBJS) |
288 |
| - $(DLLWRAP) -o $(shlib) --dllname $(shlib) --def $(NAME).def $(OBJS) $(SHLIB_LINK) |
289 |
| - $(DLLTOOL) --dllname $(shlib) --def $(NAME).def --output-lib lib$(NAME).a |
| 293 | + $(DLLTOOL) --export-all $(DLLTOOL_DEFFLAGS) --output-def $(NAME).def $(OBJS) |
| 294 | + $(DLLWRAP) -o $(shlib) --dllname $(shlib) $(DLLWRAP_FLAGS) --def $(NAME).def $(OBJS) $(SHLIB_LINK) |
| 295 | + $(DLLTOOL) --dllname $(shlib) $(DLLTOOL_LIBFLAGS) --def $(NAME).def --output-lib lib$(NAME).a |
290 | 296 |
|
291 | 297 | endif # PORTNAME == win32
|
292 | 298 |
|
293 | 299 | else # PORTNAME == cygwin
|
294 | 300 |
|
295 | 301 | # Cygwin case
|
296 | 302 | $(shlib) lib$(NAME).a: $(OBJS) $(DLLINIT)
|
297 |
| - $(DLLTOOL) --export-all --output-def $(NAME).def $(OBJS) |
298 |
| - $(DLLWRAP) -o $(shlib) --dllname $(shlib) --def $(NAME).def $(OBJS) $(DLLINIT) $(SHLIB_LINK) |
299 |
| - $(DLLTOOL) --dllname $(shlib) --def $(NAME).def --output-lib lib$(NAME).a |
| 303 | + $(DLLTOOL) --export-all $(DLLTOOL_DEFFLAGS) --output-def $(NAME).def $(OBJS) |
| 304 | + $(DLLWRAP) -o $(shlib) --dllname $(shlib) $(DLLWRAP_FLAGS) --def $(NAME).def $(OBJS) $(DLLINIT) $(SHLIB_LINK) |
| 305 | + $(DLLTOOL) --dllname $(shlib) $(DLLTOOL_LIBFLAGS) --def $(NAME).def --output-lib lib$(NAME).a |
300 | 306 |
|
301 | 307 | $(DLLINIT): $(DLLINIT:%.o=%.c)
|
302 | 308 | $(MAKE) -C $(@D) $(@F)
|
|
0 commit comments