summaryrefslogtreecommitdiff
path: root/src/Makefile.shlib
Commit message (Collapse)AuthorAgeFilesLines
* Support for DESTDIR make variable. This is used as in `make installPeter Eisentraut2000-09-171-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | DESTDIR=/else/where' and prepends the value of DESTDIR to the full installation paths (e.g., /else/where/usr/local/pgsql/bin). This allows users to install the package into a location different from the one that was configured and hard-coded into various scripts, e.g., for creating binary packages. DESTDIR is in many cases preferrable over `make install prefix=/else/where' because a) `prefix' affects the path that is hard-coded into the files, which can lead to a `make install prefix=xxx' (as done by the regression test driver) corrupting the files in the source tree with wrong paths. b) it doesn't work at all if a directory was overridden to not depend on `prefix', e.g., --sysconfdir=/etc. (Updating the regression test driver to use DESTDIR is a separate undertaking.) See also autoconf@gnu.org, From: Akim Demaille <akim@epita.fr>, Date: 08 Sep 2000 12:48:59 +0200, Message-ID: <mv4em2vb1lw.fsf@nostromo.lrde.epita.fr>, Subject: Re: HTML format documentation.
* |> The Makefile.shlib changes will have to be discussed with other LinuxBruce Momjian2000-07-071-4/+4
| | | | | | | | | | | | | | | | | | |> developers so we are sure it will work on all platforms. The problem with the current settings is that the linker is called directly. This is wrong, it should always be called through the compiler driver (the only exception is `ld -r'). This will make sure that the necessary libraries like libgcc are linked in. But there is still a different problem with the setting of LDFLAGS_ODBC. The psqlodbc module defines the functions _init and _fini which are reserved for the shared library initialisation. These should be changed to constructor functions. Then LDFLAGS_ODBC can be changed to be just `-lm'. Btw, why does it use -Bsymbolic? Andreas Schwab
* Makefile cleanup for interface tree. Now essentially with all thePeter Eisentraut2000-06-281-112/+137
| | | | | | | | | | | | | | | | | | | | | standard targets and behaviour. Replaced Makefile.in's with Makefile's and declared the respective variables in Makefile.global. maintainer-clean target now available at top level, although it does not work in the backend tree yet. Cleanup pass over Makefile.shlib, renamed some targets and variables. The shared library symlink tests are now done by make, not the shell. ecpg: Remove one warning in sloppy flex output. PL/Perl and Perl interface: the MakeMaker documentation is confusing, the realclean target *does* "delete derived files", but it also uninstalls them. Don't use that. The submake targets in the various bin directories that update libpq should `make all', not `make libpq.a'. That is a) unportable, and b) doesn't build the shared library.
* Several compilation and run-time problems occur when building on SGIBruce Momjian2000-05-161-3/+3
| | | | | | | | | | | | IRIX systems using the native compilers. A summary is: - Various files use "//" as a comment delimiter in c files. - Problems caused by assuming "char" is signed. cash.in: building -signed the rules regression test fails as described in FAQ_QNX4. If CHAR_MAX is "255U" then ((signed char)CHAR_MAX) is -1. postmaster.c: random number regression test failed without this change. - Some generic build issues and warning message cleanup. David Kaelbling
* Fix for bsdi 4.1 shared libraries.Bruce Momjian2000-03-091-2/+2
|
* I've made a diff against the 7.0beta1 tree that accomplishes several things:Bruce Momjian2000-03-081-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) adds NetBSD shared lib support on both ELF and a.out platforms 2) replaces "-L$(LIBPQDIR) -lpq" with "$(LIBPQ)" defined in Makefile.global. This makes it much easier to build stuff in the source tree after you've already installed the libraries. 3) adds TEMPLATEDIR in Makefile.global that indicates where the database templates are stored. This separates the template files from real libraries that are installed in $(LIBDIR). 4) changes include order of <readline/readline.h> and <readline.h>. The latest GNU readline installs its headers under a readline subdirectory. In addition to applying the patch below the following files need to be copied: backend/port/dynloader: bsd.h -> netbsd.h bsd.c -> netbsd.c include/port: bsd.h -> netbsd.h makefiles: Makefile.bsd -> Makefile.netbsd It would be great to see this incorporated into the source tree before the 7.0 release is cut. Thanks! -- Johnny C. Lam <lamj@stat.cmu.edu>
* Make LD -r as macros that can be changed for QNX.Bruce Momjian1999-12-091-2/+2
|
* Hi,Bruce Momjian1999-10-131-1/+4
| | | | | | | | | | | | I have changed a bit the makefiles for the win32 port - the *.def files (created when building shared libraries) are now clean from Makefile.shlib. I have also removed "-g" from CFLAGS in the "cygwin32" template - it can be enabled when running configure. Dan
* Irix fix from Mark DalphinBruce Momjian1999-09-271-2/+2
|
* Fix 'SO__MINOR_VERSION' typo for irix5; add AIX shlib supportTom Lane1999-07-161-19/+41
| | | | from Andreas Z.; minor cosmetic cleanups.
* Add SHLIB_LINK setting for solaris_i386 and solaris_sparc ports,Tom Lane1999-07-151-1/+3
| | | | per bug report from Daren Sefcik <daren@partnersdata.com>.
* Irix update from Mark DalphinBruce Momjian1999-07-081-1/+8
|
* Generate a full set of version-numbered symlinks when buildingTom Lane1999-06-301-1/+20
| | | | a shared library, not just when installing it.
* Dec alpha patches.Bruce Momjian1999-05-191-1/+7
|
* Apply freebsd specific patches dealign with ELF system from FreeBSD'sMarc G. Fournier1999-05-171-3/+4
| | | | ports collection ...
* Prevent priority inversion in locking by checking for existing locksBruce Momjian1999-04-301-4/+4
| | | | before going into queue behind person with higher piority.
* We have tested the patches on three platforms:Bruce Momjian1999-03-141-2/+6
| | | | | | | | | | | | | NetBSD/macppc LinuxPPC FreeBSD 2.2.6-RELEASE All of them seem happy with the regression test. Note that, however, compiling with optimization enabled on NetBSD/macppc causes an initdb failure (other two platforms are ok). After checking the asm code, we are suspecting that might be a compiler(egcs) bug. Tatsuo Ishii
* Apply Win32 patch from Horak Daniel.Bruce Momjian1999-01-171-1/+19
|
* Portability fixes found needed for SunOS 4.1.x:Tom Lane1998-11-301-1/+3
| | | | | | SunOS has tas(), but not memmove or strerror, and its sprintf() doesn't return int. Also, older versions of GNU Make don't like rules with empty left-hand sides...
* Fix at least a few shared-library problems on Linux.Tom Lane1998-11-121-2/+3
| | | | We have not seen the end of this issue :-(.
* Minor FreeBSD fixes put in placeMarc G. Fournier1998-10-311-4/+17
| | | | | | | | | | | | | | | | | | | | | From: SHIOZAKI Takehiko <takehi-s@ascii.co.jp> I tried snapshot(Oct30) and made some patches. # I think that it is confused to manage both Makefile.shlib and # makefiles/Makefile.*, don't you? * configure Now FreeBSD 2.X is not supported..., so I added its entry. If ELF_SYSTEM is set, gmake treat it defined even though it is "false". So nothing should be set to use "ifdef". BSD_SHLIB etc. may have same problems. * Makefile.shlib As you said, FreeBSD entry is much like BSD's. I only added ELF_SYSTEM code. * makefiles/Makefile.freebsd Ifdef/else/endif can not be indented with TABs.
* Include appropriate flags for resolved shared library LDFLAGS_ODBCThomas G. Lockhart1998-10-281-1/+2
| | | | to allow ODBC library to be linked.
* Centralized shared-library build knowledge in a new file,Tom Lane1998-10-191-0/+180
src/Makefile.shlib. Updated all the makefiles that try to build shlibs to include that file instead of having duplicate (and mostly incomplete) copies of shared-library options. It works on HPUX, a lot better than it did before in fact, but there's a chance I broke some other platforms. At least now you only have to fix one place not six...