Tom Lane schrieb:
Reini Urban <[EMAIL PROTECTED]> writes:
Peter Eisentraut schrieb:

Please point out where that happens so it can be corrected.

Something like this (against an older cvs snap), but I don't believe that this is the best way to solve it. It just solved building under cygwin.

Peter asked to know where the problem is, not what your proposed solution is (especially if you admit the solution needs work).

What happens exactly when you try to build without this patch?

[EMAIL PROTECTED] /usr/src/postgresql/postgresql-8.0.0cvs/contrib/spi
$ make
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations -DREFINT_VERBOSE -I.
-I../../src/include -c -o timetravel.o timetravel.c
dlltool --export-all --output-def timetravel.def timetravel.o
dllwrap -o timetravel.dll --def timetravel.def timetravel.o ../../src/utils/dllinit.o -L../../src/backend -lpostgres
timetravel.o(.text+0x231):timetravel.c: undefined reference to `_pg_strcasecmp'
collect2: ld gab 1 als Ende-Status zur"uck
dllwrap: gcc exited with status 1
make: *** [timetravel.dll] Fehler 1
rm timetravel.o

-lpgport missing in SHLIB_LINK
-L$(top_builddir)/src/port not added from LDFLAGS to SHLIB_LINK

make -p gives:
%.dll: %.o
#  Auszuf"uhrende Kommandos (aus >>../../src/Makefile.port<<, Zeile 16):
        $(DLLTOOL) --export-all --output-def $*.def $<
        $(DLLWRAP) -o $@ --def $*.def $< $(DLLINIT) $(SHLIB_LINK)
        rm -f $*.def

# >>override<<-Anweisung (from `../../src/', line 366)
LDFLAGS := -L../../src/port -L/usr/local/lib

---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

Reply via email to