Commit Graph

302 Commits

Author SHA1 Message Date
Bruce Momjian ffe0097519 Add linux_m68k template file. 1999-07-09 02:35:37 +00:00
Bruce Momjian ef15ed17a0 Remove -m486 on Openbsd. 1999-06-26 15:54:36 +00:00
Bruce Momjian 371a9d7ad8 linux_ppc now use -O0 to fix problem in optimization of fmgr calls. 1999-06-18 00:46:11 +00:00
Bruce Momjian 4c65382596 Remove QUERY_LIMIT and documenation on same. Change _ALIGN to TYPEALIGN
for Irix.
1999-06-17 15:16:09 +00:00
Bruce Momjian 4b9ccbe3cf Make linux_ppc use only -O, not -O2. 1999-06-17 13:44:43 +00:00
Bruce Momjian f4de72cc6b add m86 similar entries. 1999-06-11 14:34:02 +00:00
Bruce Momjian 0ac955540b Remove -O2 for linux/alpha, make -O. 1999-06-09 12:39:46 +00:00
Bruce Momjian ccdad51a73 Linux-alpha gets -O 1999-06-08 19:19:51 +00:00
Bruce Momjian 2544f2d0bb Remove optimization on linux/alpha. 1999-06-08 17:34:43 +00:00
Bruce Momjian 094616ec83 On AIX 4.3.2 the third line in template/aix_42:
SHARED_LIB:

needs to be changed to:
SHARED_LIB:-lc

I think this was also needed on AIX 4.2. Comments Please !!

If nobody objects, I suggest to make this change, since it cannot
break AIX 4.2 and is necessary on AIX 4.3

Andreas
1999-06-07 17:20:24 +00:00
Bruce Momjian 7f79496aa5 NT similar file update. 1999-05-31 16:18:53 +00:00
Tatsuo Ishii a2c96a16e4 add mipsel-unknown-linux-gnu support. config.guess seems slightly changed
since April 1?
1999-04-12 04:04:54 +00:00
Tom Lane 2e7ef7477c We use CFLAGS = -O2 on every other gcc platform, so why not
hpux_gcc too?
1999-04-04 20:16:50 +00:00
Bruce Momjian 909c519733 Add missing Windows files. 1999-01-18 12:43:55 +00:00
Bruce Momjian 7a6b562fdf Apply Win32 patch from Horak Daniel. 1999-01-17 06:20:06 +00:00
Bruce Momjian b8d5f02e4e I have ported PostgreSQL 6.4 to Cobalt Qube running Linux 2.0.33 with
MIPS cpu (I think it's R4000). I have tested the patches on LinuxPPC
and FreeBSD. I believe they do not harm other platforms.
--
Tatsuo Ishii
1998-12-18 17:25:41 +00:00
Bruce Momjian 03f1648872 Attached is a patch with some fixes that (I think that) should go into
6.4.1. Here is the list:

- The type int8 now works. In fact, the bug(s) were in
src/backend/port/snprintf.c, so int8 is probably broken in every platform
that hasn't a native snprintf/vsnprintf. The type itself worked as
expected, only the output was wrong. Anyway, this patch should be checked
in other platforms.

- The regression tests for int2 and int4, which were broken due to
differences in the error messages, are fixed.

- The regression test for float8, which was broken in the reference
platform, is also fixed. I don't know if the new file (float8-OSF1.out)
will work on other platforms, but it might be worth to try it.

- Two new template files are provided (alpha_cc, which includes
optimization, and alpha_gcc), and src/templates/.similar is updated
accordingly. src/templates/alpha should be removed from the distribution.
*IMPORTANT NOTE*: I don't know if you can use gcc to compile postgres;
I've written the alpha_gcc file because alpha_cc has some flags that are
specific to DEC C.

- There is a (very basic) Digital Unix specific FAQ in
doc/FAQ_DigitalUnix.

--
-------------------------------------------------------------------
Pedro José Lobo Perea                   Tel:    +34 91 336 78 19
1998-12-18 07:08:03 +00:00
Tom Lane e791d86012 Partial fix for vendor-cc-versus-gcc incompatibility on HPUX:
prefer aCC as c++ compiler if hpux_cc is selected as template.
Doesn't solve the problem if you have g++ and not aCC, however...
1998-12-13 20:05:16 +00:00
Tom Lane 6fef1a26cc modify configure so that template/.similar entries can be
selected when they match a prefix of the  value.  The previous method,
which stripped all version data from  and then tried to match that
against .similar entries, was entirely useless when .similar contained
several entries for different version numbers of a single OS name.
1998-11-23 04:40:58 +00:00
Tom Lane 0852fbbb55 Compiler options not spelled quite right... 1998-10-26 00:57:33 +00:00
Bruce Momjian aeb277c405 Update for bsdi 3.0. 1998-10-23 01:02:10 +00:00
Bruce Momjian 62bc4de45b Remove /usr/local/* from templates. 1998-09-18 05:00:52 +00:00
Bruce Momjian af8e2760ba Here are some additional patches needed to get the UnixWare 7 C++
compiler to
attempt to compile libpq++.  The patches address the following problems:

1.  In my first pass at changing the libpq++ makefile, I forgot to
include the
    PORTNAME in the Makefile.in file.

2.  The UnixWare 7 C++ compiler did not like the '-K alloca' option in
CXXFLAGS.

Billy G. Allie
1998-09-13 04:00:44 +00:00
Bruce Momjian 56a2d8042b bsdi 4.0. 1998-09-10 04:46:45 +00:00
Bruce Momjian 42cc8c019e Add some support for BSDI 4.0. 1998-09-10 04:39:47 +00:00
Bruce Momjian 6d3a5482aa Aix4 fixes from Andreas Zeugswetter 1998-09-09 18:39:33 +00:00
Bruce Momjian b07f4b4efb Configure fix for install script search. 1998-09-02 01:54:18 +00:00
Bruce Momjian 61d673b2ea bsdi cleanup 1998-09-01 16:31:19 +00:00
Marc G. Fournier c8b3d5d3f8 Add nextstep to similar template file 1998-08-25 14:12:27 +00:00
Bruce Momjian a738478ad8 Here are additional patches for the UnixWare 7 port.
Summary of changes:

In pqcomm.h, use the SUN_LEN macro if it is defined to calculate
the size of the sockaddr_un structure.

In unixware.h, drop the use of the UNIXWARE macro.  Everything can
be handled with the USE_UNIVEL_CC and DISABLE_COMPLEX_MACRO macros.

In s_lock.h, remove the reference to the UNIXWARE macro (see above).

In the unixware template, add the YFLAGS:-d line.

In various makefile templates, add (or cleanup) unixware and univel
port specific information.

-- Billy G. Allie
1998-08-22 04:24:41 +00:00
Bruce Momjian b41468dad2 Make sparc/solaris not use complex macr. 1998-07-19 05:02:51 +00:00
Bruce Momjian cf21d71a14 Attached are the three patches that were needed to get PostgreSQL
6.3.2 to compile (and run) on my Sparc Solaris 2.5.1 box. Details
below:

	pgsql.sparc.patch-template: Adds -D__sparc__ and -D__sun__,
defintions which gcc does define, but Sun's cc does not. :(
	pgsql.sparc.patch-makefile: Adds a define so that 'lorder'
	is not used, as it is not found on my machine.


Ryan Kirkpatrick
1998-07-19 04:30:04 +00:00
Bruce Momjian 0624f3dcbd My mailer munged the intro text in my last post. Here is the text
in a more readable form.  -- I am submitting the following patches
to the June 6, 1998 snapshot of PostgreSQL.  These patches implement
a port of PostgreSQL to SCO UnixWare 7, and updates the Univel port
(UnixWare 2.x).  The patched files, and the reason
 for the patch are:

File            Reason for the patch ---------------
---------------------------------------------------------------
src/backend/port/dynloader/unixware.c src/backend/port/dynloader/unixware.h
src/include/port/unixware.h src/makefiles/Makefile.unixware
src/template/unixware
		Created for the UNIXWARE port.

src/include/port/univel.h
		Modifed this file to work with the changes made to
		s_lock.[ch].

src/backend/storage/buffer/s_lock.c src/include/storage/s_lock.h
		Moved the UNIXWARE (and Univel) tas() function from
		s_lock.c to s_lock.h.  The UnixWare compiler asm
		construct is treated as a macro and needs to be in
		the s_lock.h file.  I also reworked the tas()
		function to correct some errors in the code.

src/include/version.h.in
		The use of the ## operator with quoted strings in
		the VERSION macro caused problems with the UnixWare
		C compiler.  I removed the ## operators since they
		were not needed in this case.  The macro expands
		into a sequence of quoted strings that will be
		concatenated by any ANSI C compiler.

src/config.guess
		This script was modified to recognize SCO UnixWare
		7.

src/configure src/configure.in
		The configure script was modified to recognize SCO
		UnixWare 7.

Billy G. Allie
1998-07-19 04:17:13 +00:00
Bruce Momjian 62b124b4ee new linux_ppc port. 1998-06-22 02:04:29 +00:00
Bruce Momjian 4d96f02394 Update .similar file for new template names. 1998-06-18 04:29:53 +00:00
Bruce Momjian 693b156a70 Add flag for linux-alpha. 1998-06-16 04:04:00 +00:00
Bruce Momjian d939f60ca7 template change 1998-06-12 22:42:12 +00:00
Bruce Momjian 6a08857cc8 template changes 1998-06-12 22:26:24 +00:00
Bruce Momjian af73db0697 Solaris 5 fix. 1998-05-22 04:48:45 +00:00
Marc G. Fournier 1af6b56427 From: Ryan Kirkpatrick <rkirkpat@nag.cs.colorado.edu>
Ok, I have finally gotten all of the defines for Dec/Alpha and
Linux/Alpha sorted out as Marc asked. There is no longer any need for
'-Dalpha' or '-Dlinuxalpha' in either the Dec/Alpha or the Linux/Alpha
template files (./src/template/{alpha,linuxalpha}). I have replaced every
instance of 'alpha' or '__alpha__' with '__alpha', as that appears to be
the common symbol between C compilers on both operating systems (RH4.2 &
DecUnix 4.0b) for alpha.
1998-04-27 14:46:51 +00:00
Bruce Momjian 85519eea83 Fix cc-specifc compiler flags in templatees. 1998-04-27 03:32:11 +00:00
Marc G. Fournier 19d41d4438 From: Darren King <darrenk@insightdist.com>
This will force the aix compiler to insert trapping code to
check for division by zero for the 4.1 port.
1998-04-17 02:44:01 +00:00
Marc G. Fournier d4d26f9c33 From: Diab Jerius <dj@pelf.harvard.edu>
Fix for Solaris/cc problem
1998-04-13 14:46:48 +00:00
Marc G. Fournier a362212a17 linuxalpha patches from Ryan Kirkpatrick <rkirkpat@nag.cs.colorado.edu> 1998-04-11 21:14:50 +00:00
Bruce Momjian bc40727042 cleanup and possible alpha-linux fix. 1998-04-06 02:03:08 +00:00
Bruce Momjian 1e801a8f16 Hi,
Attached you'll find a (big) patch that fixes make dep and make
depend in all Makefiles where I found it to be appropriate.

It also removes the dependency in Makefile.global for NAMEDATALEN
and OIDNAMELEN by making backend/catalog/genbki.sh and bin/initdb/initdb.sh
a little smarter.

This no longer requires initdb.sh that is turned into initdb with
a sed script when installing Postgres, hence initdb.sh should be
renamed to initdb (after the patch has been applied :-) )

This patch is against the 6.3 sources, as it took a while to
complete.

Please review and apply,

Cheers,

Jeroen van Vianen
1998-04-06 00:32:26 +00:00
Bruce Momjian f6c0fc1959 The real trick is to add -Dalpha to the CFLAGS setting. The changes
to main.c are only to add some extra includes to support some code
that's suddenly being used.

The #define ASSEMBLER is to prevent most of the code of sys/proc.h
from being included, as it ends up conflicting with some of the
postgresql definitions.  This may or may not work on other versions
of Digital Unix.


Get alpha working.  Yea.  Dwayne Bailey
1998-03-20 03:55:52 +00:00
Bruce Momjian 94abcc1665 SunOS .similar cleanup. 1998-03-16 15:14:50 +00:00
Bruce Momjian 45ce9e4030 Add SunOS entries. 1998-03-16 14:46:37 +00:00
Marc G. Fournier 56b3182241 From: "Billy G. Allie" <Bill.Allie@mug.org>
The following patches will allow postgreSQL 6.3 to compile and run on a
UNIXWARE 2.1.2 system with the native C compiler with the following library
change:

        The alloca function must be copied from the libucb.a archive and added
        to the libgen.a archive.

Also, the GNU flex program is needed to successfully build postgreSQL.
1998-03-01 04:47:38 +00:00
Marc G. Fournier 9ceaa677ad Add for port hppa-??-hpux... 1998-02-27 21:55:22 +00:00
Marc G. Fournier 0daa8c3745 A few misc fixes brought up by Andrew 1998-02-23 15:44:25 +00:00
Marc G. Fournier ded3f3b3fc Remove all backend/port/${PORTNAME} references from template files, since
they don't exist anymore
1998-02-16 14:39:29 +00:00
Marc G. Fournier e3f2224664 Remove -m486 option, since it is platform specific...this should technically
be removed everywhere, but so far linux-elf is the only platform that is
being reported a problem with...
1998-02-13 04:57:23 +00:00
Marc G. Fournier fe3737f6f9 Fixes for linux-elf-sparc related template file
From: "Thomas A. Szybist" <szybist@boxhill.com>
1998-02-03 01:00:50 +00:00
Marc G. Fournier 6e9558e639 From: "Billy G. Allie" <Bill.Allie@mug.org>
The following patches will bring the UNIVEL port in line with the new porting
model used in postgreSQL 6.3
1998-02-01 07:44:00 +00:00
Marc G. Fournier b7ed95ae15 don't forget to 'template' i386_solaris 1998-01-29 17:16:02 +00:00
Marc G. Fournier 9efbe8d761 From what I can tell, -DNOFIXADE does absolutely nothing under HP/ux 1998-01-27 05:03:15 +00:00
Marc G. Fournier 7aeda9d667 add CC:cc so that configure uses cc on non-gcc machine
From: Stan Brown <stanb@awod.com>
1998-01-27 05:02:11 +00:00
Marc G. Fournier 8700377384 Start an openbsd port 1998-01-20 03:11:11 +00:00
Marc G. Fournier 36c1c94bca From: "Billy G. Allie" <Bill.Allie@mug.org>
The attached patches will allow postgreSQL to compile successfully on SCO
UNIXWARE 2.1.x.  The patches fix the following problems:

1.  Configure did not properly recognize the UNIXWARE system as needing the
    univel port.  It used the sys4 port.

2.  Configure did not properly process the CC flag in the template file.

3.  There was no working test and set locking implementation for the native
    UNIXWARE compiler.

4.  The test and set locking used for Intel X86 that was selected by defining
    NEED_I386_TAS_ASM could fail in a multi-processor environment.

5.  The makefiles for libpq and libpgtcl did not make a shared library for
    the univel port.
1998-01-17 23:33:58 +00:00
Marc G. Fournier 9257cb65b2 Linux related change to .similar to handle 'a.out' files...
From: Herb Richter <hgr@buynet.com>
1997-12-02 02:43:08 +00:00
Bruce Momjian 58527aa227 Add to .similar file, Tatsuo Ishii 1997-11-19 17:57:42 +00:00
Marc G. Fournier 0f367cf8c8 From: "Gillies, Robert" <GilliesR@Nichols.com>
Add: Stratus computer (a fault tolerant Unix box running an Intel I960
processor).
1997-11-10 03:31:49 +00:00
Marc G. Fournier 8d0fe2d0d4 Oops, shouldn't have added that extra, it seems... :) 1997-11-09 03:58:20 +00:00
Marc G. Fournier 3dfcef7c5f Add i586-pc-sco3.2v5.0.2 to .similar file
Pointed out by: Pieter Huyser <pieter@inetsys.alt.za>
1997-11-09 03:45:39 +00:00
Bruce Momjian 868859b7e3 AIX patch from Darren King. 1997-10-30 03:37:28 +00:00
Thomas G. Lockhart 2cad160f13 Have compiler use 486 instruction set. (Should add item in linux FAQ). 1997-10-25 05:58:56 +00:00
Bruce Momjian a4cffdcf82 HPUX 10 fix. 1997-09-30 15:19:32 +00:00
Bruce Momjian 28c2edcb3d Remove aix power pc. 1997-09-24 15:49:46 +00:00
Bruce Momjian 88325bd010 AIX fixes. 1997-09-23 22:53:47 +00:00
Marc G. Fournier 359cd689f8 Ack, I missed a template file here :( 1997-09-18 01:32:14 +00:00
Bruce Momjian f05642bbcc Linux seems to have 3/4/5/686. 1997-09-16 18:51:49 +00:00
Bruce Momjian 9b7f362d0a -Linux configure additoin, libtcl Makefile patch. 1997-09-14 23:34:16 +00:00
Bruce Momjian 281ba3f40d Update .similar version file. 1997-08-22 18:48:25 +00:00
Marc G. Fournier eaae21fb4d Fixes for alphalinux port by abrams@philos.umass.edu 1997-08-17 02:40:00 +00:00
Bruce Momjian 105889e1d8 Makei configure less os-version specific, were possible. 1997-08-02 16:32:51 +00:00
Bruce Momjian 8338f90d4e Add SCO files. 1997-07-28 01:34:24 +00:00
Bruce Momjian 79e78f0b80 Added SCO support, from Daniel Harris. 1997-07-28 00:57:08 +00:00
Bruce Momjian 3ac9d2fff3 Various compile errors concerning overflow due to shifts, unsigned, and bad prototypes, from Solaris, from Diab Jerius 1997-07-24 20:19:10 +00:00
Bruce Momjian 41b805b913 Solaris .similar update. 1997-07-16 02:25:16 +00:00
Bruce Momjian 441648d955 .similar patch for irix 1997-07-15 17:16:46 +00:00
Marc G. Fournier 11c7d75560 From: Phil Nelson <phil@cs.wwu.edu>
Subject: [PATCHES] Patches to allow generic NetBSD support
1997-06-06 01:38:24 +00:00
Bruce Momjian ce2fcd0180 bsdi configure detection fix. 1997-06-05 17:36:43 +00:00
Bruce Momjian 21437b747b Add bsdi to template detection. 1997-06-03 20:08:06 +00:00
Bruce Momjian f93bd64504 Add bsdi 3.0 to configure. 1997-06-01 04:05:26 +00:00
Marc G. Fournier 9860926148 From: Darren King <aixssd!darrenk@abs.net>
Subject: [PATCHES] AIX 6.2 make patch.

New template files to replace the old AIX template
1997-05-20 03:00:17 +00:00
Marc G. Fournier 500b17eadf These two files got reversed somehow... -K PIC is a cc'ism and -fPIC is a
gcc'ism
1997-05-19 03:21:55 +00:00
Marc G. Fournier e454d8a116 From: David Friend <dfriend@atlsci.atlsci.com>
Add an entry for the Sparc/Linux port in .similar
1997-05-17 03:02:04 +00:00
Marc G. Fournier 9f2d714620 From: "Paul M. Aoki" <aoki@CS.Berkeley.EDU>
Subject: [PATCHES] port patch: ultrix4

ultrix4 doesn't compile without this.  this also fixes a problem
with dynamic loading (ultrix relocatable objects must be loaded
with -G 0).
1997-05-07 03:12:46 +00:00
Marc G. Fournier 81acad4932 Add a netbsd template file and update linux-elf and .similar 1997-04-28 16:19:50 +00:00
Marc G. Fournier b2f2e0316e More misc patches from Thomas for regression tests and linux templates 1997-04-26 05:50:25 +00:00
Marc G. Fournier 87fffc4342 Various bug fixes based on a bug report submitted by
Doug Neuhauser <doug@seismo.berkeley.edu> on April 15th
1997-04-24 20:02:02 +00:00
Marc G. Fournier cf398593fd From: System Administrator <igor@sba.miami.edu>
Subject: [PORTS] Configure for DEC-Alpha

Configure script properly detects alpha-dec-osf4.0 machine, but
sets a default GENERIC template for it. I modified tempplate/.similar to
add alpha-dec-osf4.0=alpha. Then configure properly set the template to
alpha.
1997-04-22 17:55:20 +00:00
Marc G. Fournier ba697c8c0b Fix a problem with Linux where yacc is *really* bison -y 1997-04-16 14:13:51 +00:00
Marc G. Fournier bb0a17412d Change BACKEND to CFLAGS 1997-04-11 18:55:10 +00:00
Marc G. Fournier 063190a5fa Add in support so that build will at least guess which template file
should be used :)
1997-04-06 04:43:28 +00:00
Marc G. Fournier eda9d69d6c Move YACC and YFLAGS into the template files
Clean up the .sample files...comment out all sample entries except for
the localhost one
1997-04-04 11:23:15 +00:00
Marc G. Fournier c7b40e6058 This commit represents a clean compile with the new templates under
FreeBSD

The Makefile(s) have all been cleaned up such that there is a single
LDFLAGS vs LD_ADD or LDADD or LDFLAGS or LDFLAGS_BE.  The Makefile(s)
should be alot more straightforward then they were before...and
consistent
1997-04-04 10:43:16 +00:00
Marc G. Fournier e292a9d627 Got AROPT setting backwards...correct it 1997-04-04 09:02:34 +00:00
Marc G. Fournier 50db09185d Remove some files that were inadvertantly created
Clean up format of linux-elf
1997-04-04 08:16:37 +00:00
Marc G. Fournier f2eb14ad0d One helluva mess.
Further extended Makefile.global/build/configure so that we can
have a 'template' file for each OS (and each version of OS, as in BSDi)
which is used as much as possible to generate Makefile.global

	Any future ports should look at using the template file as a basis,
before moving over to Makefile.global.

	This will most probably break alot of the ports, atho I've tried to
be very neat about it...
1997-04-04 07:59:48 +00:00