Bruce Momjian
85bd172c45
Add -pipe compile for Linux.
2003-10-09 14:47:59 +00:00
Bruce Momjian
7185455c08
Make template CFLAGS handling consistent.
2003-10-09 14:40:37 +00:00
Bruce Momjian
6687152582
Re-add -pipe compile flags for bsd's.
2003-10-09 04:34:02 +00:00
Bruce Momjian
0e22cb1232
This centralizes the optimization defaults into configure.in, rather
...
than having CFLAGS= in the template files.
It uses -O2 for gcc (generated by autoconf), and -O for non-gcc, unless
the template overrides it.
2003-10-09 03:20:34 +00:00
Bruce Momjian
6acca5765e
Add quotes to CFLAG define.
2003-10-09 02:37:09 +00:00
Bruce Momjian
2ff4091862
Add quotes around -O setting for consistency.
2003-10-08 18:23:08 +00:00
Bruce Momjian
74c8703031
Mark Linux for threads.
2003-09-27 22:23:35 +00:00
Bruce Momjian
391dceb462
Finalize configuration of thread_test program.
2003-09-27 16:24:45 +00:00
Bruce Momjian
227dd9b427
Rename thread compile flag. Move thread test program to tools/thread,
...
and improve tests.
2003-09-27 15:32:48 +00:00
Tom Lane
026f9c05d5
Move -D_GNU_SOURCE hack from port header to template, so that
...
configure's tests see the same compilation environment as the code.
Per discussion with Stephan Szabo.
2003-09-26 17:39:13 +00:00
Tom Lane
fc6b7c550d
Latest version of gcc from Apple does not work well with -traditional-cpp
...
(it rejects some system header files...). Use -no-cpp-precomp instead.
I think it is okay to change this unconditionally, but if we hear
complaints from people still using very old compilers on Darwin,
we could put in a test to see which switch the compiler likes.
2003-09-19 20:47:59 +00:00
Bruce Momjian
24d41a9efc
NetBSD needs reentrant funcs.
2003-09-15 02:17:49 +00:00
Bruce Momjian
b041d3e3a1
Attempt threading in this order:
...
* use non-*_r function names if they are all thread-safe
* (NEED_REENTRANT_FUNCS=no)
* use *_r functions if they exist (configure test)
* do our own locking and copying of non-threadsafe functions
New to this patch is the last option.
2003-09-13 14:49:51 +00:00
Bruce Momjian
9fc3b9330e
Mark FreeBSD as non-thread-safe.
2003-09-12 16:49:34 +00:00
Bruce Momjian
38eb18092c
Tighten casting of function call pointers for threads.
2003-09-03 22:34:08 +00:00
Bruce Momjian
4928856fc4
Mark unixware as verified.
2003-09-03 20:54:21 +00:00
Bruce Momjian
e57c9fa6b8
Add Unixware as verified.
2003-09-03 20:51:40 +00:00
Bruce Momjian
47e6609c54
Mark BSD/OS as verified not needing reentrant function names.
2003-09-03 19:40:56 +00:00
Bruce Momjian
c351729e1e
Mark Unixware as not requiring *_r functions.
2003-09-03 17:55:43 +00:00
Bruce Momjian
ceacae7734
Fix unixware template --- had spaces around equals.
2003-08-30 03:19:47 +00:00
Bruce Momjian
f3dda96452
Fix unixware thread test.
2003-08-25 02:48:25 +00:00
Bruce Momjian
eb4dded09e
Add quotes to += of unixware threads define.
2003-08-24 23:21:05 +00:00
Bruce Momjian
edc999b09a
Make NEED_REENTRANT_FUNC_NAMES _require_ *_r functions, and add tests to
...
configure to report if they are not found.
2003-08-16 15:35:51 +00:00
Bruce Momjian
b72c1b9f63
Adjustment for unixware threading.
2003-08-14 21:24:38 +00:00
Bruce Momjian
bb0b73cd73
Mark unixware as having threaded support.
2003-08-14 21:14:17 +00:00
Bruce Momjian
a4a31d3967
Adjust for compiler options for compiler bug.
...
Larry Rosenman
2003-08-13 23:59:49 +00:00
Tom Lane
bbac4188f9
OSF supports pthreads, per Philip Yarra.
2003-07-15 17:28:36 +00:00
Bruce Momjian
ffa3bfbc30
Move thread os defines into template files.
2003-06-14 19:21:42 +00:00
Bruce Momjian
12c9423832
Allow Win32 to compile under MinGW. Major changes are:
...
Win32 port is now called 'win32' rather than 'win'
add -lwsock32 on Win32
make gethostname() be only used when kerberos4 is enabled
use /port/getopt.c
new /port/opendir.c routines
disable GUC unix_socket_group on Win32
convert some keywords.c symbols to KEYWORD_P to prevent conflict
create new FCNTL_NONBLOCK macro to turn off socket blocking
create new /include/port.h file that has /port prototypes, move
out of c.h
new /include/port/win32_include dir to hold missing include files
work around ERROR being defined in Win32 includes
2003-05-15 16:35:30 +00:00
Tom Lane
1da6eb7fda
Whack getaddrinfo() patch around until it works, more or less, on
...
machines without IPv6. Or at least it works on HPUX 10.20 ...
2003-04-02 00:49:28 +00:00
Peter Eisentraut
1a7f4ed525
Make "win" a separate port from "cygwin". This means you can now
...
configure under native Windows (MinGW that is), but you won't get very far
compiling yet. The dynaloader files are from Jan Wieck's patch set.
2003-03-21 17:18:34 +00:00
Bruce Momjian
dc8d322a8b
Mark SCO Openserver 5.0.4. supported by 7.3.1 as per chat report from user.
...
template/sco updated.
2002-12-11 22:27:26 +00:00
Peter Eisentraut
337da0678a
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.
2002-09-05 18:28:46 +00:00
Peter Eisentraut
e43ecb3d1a
Remove leftovers from subproject removals. Fixes for Python and Kerberos
...
configuration.
2002-09-04 22:54:18 +00:00
Bruce Momjian
a4f6add21b
Back out patch, that was alpha, which I think still needs just -O.
2002-08-29 19:35:47 +00:00
Bruce Momjian
19deb4fc41
Change FreeBSD to use -O2, important for MemSet.
2002-08-29 19:35:07 +00:00
Bruce Momjian
2dc53d863c
Fix case syntax for freebsd template.
2002-07-08 01:54:30 +00:00
Bruce Momjian
4f4753832e
Move CXX platform-specific stuff into template files.
2002-07-07 20:28:25 +00:00
Bruce Momjian
712f69ece8
Convert expr to case, for Peter E.
2002-07-07 14:24:13 +00:00
Bruce Momjian
d656c249b3
Update FreeBSD template to properly compile c++ on alpha.
2002-07-03 19:48:26 +00:00
Tom Lane
72a3902a66
Create an internal semaphore API that is not tied to SysV semaphores.
...
As proof of concept, provide an alternate implementation based on POSIX
semaphores. Also push the SysV shared-memory implementation into a
separate file so that it can be replaced conveniently.
2002-05-05 00:03:29 +00:00
Peter Eisentraut
7c1ff35410
Upgrade to Autoconf version 2.53. Replaced many custom macro
...
calls with new or now-built-in versions. Make sure that all
calls to AC_DEFINE have a third argument, for possible use of
autoheader in the future.
2002-03-29 17:32:55 +00:00
Peter Eisentraut
8c9c8ca2b5
Remove -mips2 flag, which breaks the build on some MIPS systems.
...
Report from Ryan Murray via Debian
2002-03-21 15:21:41 +00:00
Peter Eisentraut
f7b7b0399c
0 -> O
2001-08-08 13:30:20 +00:00
Bruce Momjian
a1f14d30b1
Back out qnx plpgsql/Makefile change and move to src/Makefile.
2001-05-24 22:33:18 +00:00
Peter Eisentraut
c87bc779d4
Use RTLD_GLOBAL flag for dlopen-style dynamic loaders.
2001-05-14 21:45:53 +00:00
Peter Eisentraut
f7bfb5518d
Shared library and GCC support for SCO OpenServer.
2001-05-07 20:43:28 +00:00
Tom Lane
d1864e388a
Select optimization by default for HP's C compiler.
2001-02-20 19:04:04 +00:00
Tom Lane
41fe2a2a03
Darwin porting patches from Peter Bierman <bierman@apple.com>
2000-12-11 00:49:54 +00:00
Tom Lane
6ba959eee0
AIX patches from Andreas.
2000-11-18 05:40:03 +00:00