problem compiling C++ modules in /contrib

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема problem compiling C++ modules in /contrib
Дата
Msg-id 6EE64EF3AB31D5448D0007DD34EEB34101AE5F@Herge.rcsinc.local
обсуждение исходный текст
Список pgsql-hackers-win32
Inside /contrib under mingw, all the modules are built with dllwrap to
make them into loadable modules.

For C++ modules, the option --driver-name g++ has to be added to dllwrap
or they don't link properly.  Is there a way to edit the makefile safely
so thips option gets passed to dllwrap?

In other words, with the standard makefile, we get:
g++ -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
-Wmissing-declarations -I. -I../../src/include
-I./src/include/port/win32 -DEXEC_BACKEND
"-I../../src/include/port/win32"  -c -o lockmgr.o lockmgr.cc
dlltool --export-all --output-def lockmgr.def lockmgr.o
dllwrap -o lockmgr.dll --def lockmgr.def lockmgr.o  -L../../src/backend
-lpostgres

and we need (which compiles and links):
g++ -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
-Wmissing-declarations -I. -I../../src/include
-I./src/include/port/win32 -DEXEC_BACKEND
"-I../../src/include/port/win32"  -c -o lockmgr.o lockmgr.cc
dlltool --export-all --output-def lockmgr.def lockmgr.o
dllwrap -o lockmgr.dll --driver-name g++ --def lockmgr.def lockmgr.o
-L../../src/backend -lpostgres

Merlin

В списке pgsql-hackers-win32 по дате отправления:

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Re: pg_ctl vs. Windows locking
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: pg_ctl vs. Windows locking