summaryrefslogtreecommitdiff
path: root/src/Makefile.shlib
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix assorted issues with build and install paths containing spaces.Tom Lane2011-06-141-1/+1
| | | | | | Apparently there is no buildfarm critter exercising this case after all, because it fails in several places. With this patch, build, install, check-world, and installcheck-world pass for me on OS X.
* Remove useless whitespace at end of linesPeter Eisentraut2010-11-231-1/+1
|
* Improved parallel make supportPeter Eisentraut2010-11-121-5/+6
| | | | | | | | Replace for loops in makefiles with proper dependencies. Parallel make can now span across directories. Also, make -k and make -q work properly. GNU make 3.80 or newer is now required.
* Remove cvs keywords from all files.Magnus Hagander2010-09-201-1/+1
|
* Still more third thoughts: when linking shared libraries, LDFLAGS probablyTom Lane2010-07-061-7/+4
| | | | | | | needs to appear before anything placed in SHLIB_LINK. This is because SHLIB_LINK is typically a subset of LIBS, and LIBS has to appear after LDFLAGS on platforms that are sensitive to the relative order of -L and -l switches.
* Split the LDFLAGS make variable into two parts: LDFLAGS is now used forTom Lane2010-07-051-19/+12
| | | | | | | | | | | | | linking both executables and shared libraries, and we add on LDFLAGS_EX when linking executables or LDFLAGS_SL when linking shared libraries. This provides a significantly cleaner way of dealing with link-time switches than the former behavior. Also, make sure that the various platform-specific %.so: %.o rules incorporate LDFLAGS and LDFLAGS_SL; most of them missed that before. (I did not add these variables for the platforms that invoke $(LD) directly, however. It's not clear if we can do that safely, since for the most part we assume these variables use CC command-line syntax.) Per gripe from Aaron Swenson and subsequent investigation.
* Derived files that are shipped in the distribution used to be built in thePeter Eisentraut2009-08-281-7/+7
| | | | | | source directory even for out-of-tree builds. They are now alsl built in the build tree. This should be more convenient for certain developers' workflows, and shouldn't really break anything else.
* Make the .DEF file generation rules safe against tabs in exports.txt.Tom Lane2009-08-271-6/+6
| | | | Per bug #5016, although I think the MSVC build scripts may need a similar fix.
* Update of install-sh, mkinstalldirs, and associated configuryPeter Eisentraut2009-08-261-3/+3
| | | | | | | | | | | | | | Update install-sh to that from Autoconf 2.63, plus our Darwin-specific changes (which I simplified a bit). install-sh is now able to install multiple files in one run, so we could simplify our makefiles sometime. install-sh also now has a -d option to create directories, so we don't need mkinstalldirs anymore. Use AC_PROG_MKDIR_P in configure.in, so we can use mkdir -p when available instead of install-sh -d. For consistency with the rest of the world, the corresponding make variable has been renamed from $(mkinstalldirs) to $(MKDIR_P).
* Allow out-of-tree builds on mingw and cygwinPeter Eisentraut2009-01-051-3/+4
| | | | Author: Richard Evans <richard.evans@blueallegro.net>
* Append major version number and for libraries soname major version numberPeter Eisentraut2008-12-111-1/+5
| | | | | | | to the gettext domain name, to simplify parallel installations. Also, rename set_text_domain() to pg_bindtextdomain(), because that is what it does.
* Move FAQ_AIX information to installation instructions.Peter Eisentraut2008-11-241-1/+2
| | | | | | The information on why the shared libraries are built the way they are was not relevant to end users and has been made a mailing list archive link in Makefile.shlib.
* Synchronize the shared object build rules in Makefile.port with Makefile.shlibPeter Eisentraut2008-09-011-4/+3
| | | | | somewhat by adding CFLAGS where the compiler is used and Makefile.shlib already used CFLAGS.
* On cygwin and win32, don't override the shlib name when building a module.Peter Eisentraut2008-04-081-3/+7
| | | | Should fix regression test failures on those platforms.
* Always define stlib, since some platforms need it for building modules.Peter Eisentraut2008-04-071-2/+2
| | | | Should fix build failures on AIX.
* Implement a few changes to how shared libraries and dynamically loadablePeter Eisentraut2008-04-071-60/+148
| | | | | | | | | | | | | | | modules are built. Foremost, it creates a solid distinction between these two types of targets based on what had already been implemented and duplicated in ad hoc ways before. Specifically, - Dynamically loadable modules no longer get a soname. The numbers previously set in the makefiles were dummy numbers anyway, and the presence of a soname upset a few packaging tools, so it is nicer not to have one. - The cumbersome detour taken on installation (build a libfoo.so.0.0.0 and then override the rule to install foo.so instead) is removed. - Lots of duplicated code simplified.
* Don't build the win32 support files in the all target, only in distprep andPeter Eisentraut2008-02-261-8/+2
| | | | when they are actually needed as prerequisites.
* Reorganize some of the exports list generation code. It seems that thisPeter Eisentraut2008-02-261-46/+27
| | | | | | has been reinvented about four different times throughout history (aix, cygwin, win32, darwin/linux) and a lot of the concepts are actually shared, which the code now shows better.
* Escape # character in variable assignmentPeter Eisentraut2008-02-261-2/+2
|
* Refactor the code that creates the shared library export files to appearPeter Eisentraut2008-02-261-6/+77
| | | | only once in Makefile.shlib and not in four copies.
* Change $(CC) to $(COMPILER) on Solaris gcc so -m64 is passed into theBruce Momjian2007-02-201-2/+2
| | | | shared link line.
* Fix another erroneous =-for-:= substitution.Tom Lane2007-02-111-2/+2
|
* Replace useless uses of := by = in makefiles.Peter Eisentraut2007-02-091-6/+6
|
* Indent comments in makefiles better so they don't appear in the output.Peter Eisentraut2007-01-071-3/+5
|
* Fix shared library creation to work properly on AIX. Albe LaurenzTom Lane2006-09-191-5/+11
|
* Arrange to strip libpq.so of symbols that aren't officially supposed toTom Lane2006-04-281-4/+4
| | | | | | | | be exported on Linux and Darwin. We already did this on Windows but that's not enough, as evidenced by the fact that libecpg had an unexpected dependency on one such symbol. We should try to do it on more platforms. Fix ecpg's oversight, and bump libpq's major .so version number to reflect the unwanted but nonetheless real ABI break.
* Remove use of lorder and tsort while building static libraries. There'sTom Lane2006-04-191-9/+1
| | | | | | | | no evidence that any currently-supported platform needs this, and good reason to think that any platform that did need it couldn't use the static libraries anyway --- libpq, at least, has circular references. Removing the code shuts up tsort warnings about the circular references on some platforms.
* Remove BEOS port.Bruce Momjian2006-01-051-17/+1
|
* Add support for Solaris x86_64 using Sun's compiler.Bruce Momjian2005-12-301-2/+2
| | | | Pierre Girard
* Allow installation into directories containing spaces in the name.Peter Eisentraut2005-12-091-11/+11
|
* Fix out-of-order inclusion of -L switches from LDFLAGS on AIX and HPUX.Tom Lane2005-12-031-3/+6
| | | | Per example from Dirk Pirschel.
* Clean up AIX build to avoid 'duplicate symbol' warnings, by moving useTom Lane2005-10-281-2/+2
| | | | | | | of postgres.imp file into BE_DLLLIBS macro. This makes the AIX build work more like the Windows and Darwin builds, which have similar requirements to mention a backend library when linking shared libraries that will be dynamically loaded into the backend.
* Cygwin no longer needs to hack SHLIB_LINK, now that Rocco AltierTom Lane2005-08-081-3/+1
| | | | fixed the contrib library inclusions properly.
* Set shlib naming convention on Cygwin to 'cygFOO.dll', which appearsTom Lane2005-08-071-2/+2
| | | | | to be the platform standard. This should fix recursive-rule breakage due to recent Makefile changes. Per discussion.
* Fix unwanted side-effects of recent SHLIB_LINK -L patch on existingTom Lane2005-07-131-6/+9
| | | | hacking of SHLIB_LINK for HPUX.
* Move -L flag around for shared builds:Bruce Momjian2005-07-131-2/+2
| | | | | | | | | | | | I wrote: > So either we code up some intelligence to put the "C" in the right > position or we have to pass down "A B" and "D" separately from the > main makefile. The following patch might just do the former. Please try it out. Peter E.
* Hack around the discrepancy between default library search paths forTom Lane2005-07-121-1/+8
| | | | | gcc and for HP's ld on HPUX. There may be better ways to do this, but this seems to work for me...
* Reverse this patch:Bruce Momjian2005-07-041-2/+2
| | | | | | | | | | | | | | | | | | --------------------------------------------------------------------------- > A quick look shows that when you use --with-libraries=/foo/bar the > generated link line for libraries says > > -L/foo/bar -lpq > > and it should probably be the other way around (as it is for the > executables). > > So I suspect we need some makefile tuning. You were correct. This patch fixes it. Jim C. Nasby
* > A quick look shows that when you use --with-libraries=/foo/bar theBruce Momjian2005-07-021-2/+2
| | | | | | | | | | | | | | | > generated link line for libraries says > > -L/foo/bar -lpq > > and it should probably be the other way around (as it is for the > executables). > > So I suspect we need some makefile tuning. You were correct. This patch fixes it. Jim C. Nasby
* Fix up makefile dependencies for pg_config_paths.h.Tom Lane2004-11-201-3/+3
|
* Clean up rpath handling for HPUX --- we can't use the cc-style rpathTom Lane2004-11-191-3/+9
| | | | switch syntax when calling ld directly.
* Adjust SHLIB_LINK for cygwin case.Tom Lane2004-11-171-2/+2
| | | | Reini Urban
* Suppress duplicate rules for lib$(NAME).a on WIN32 and Cygwin.Tom Lane2004-11-161-1/+5
| | | | Andrew Dunstan
* Export only required symbols in libpq on Win32.Bruce Momjian2004-10-161-1/+13
| | | | Magnus Hagander
* > This lets you do something like:Bruce Momjian2004-10-151-4/+4
| | | | | | | | | > > ./configure LDFLAGS=-static-libgcc LDFLAGS_SL=-static-libgcc > > to produce binaries that do not depend on libgcc_s.so at all. Oliver Jowett
* Allow compiles for Cygwin /contrib modules.Bruce Momjian2004-10-131-1/+3
| | | | Reini Urban
* Enable static lib builds on Win32 and Cygwin.Bruce Momjian2004-10-131-7/+1
|
* Update Cygwin build to not use DLLINIT, per Cygwin report from ReiniBruce Momjian2004-10-121-6/+3
| | | | Urban
* Fix vpath build break, induced by Bruce's recent commit.Neil Conway2004-10-121-3/+3
|
* Add some pg_config_path.h dependencies for places that includeBruce Momjian2004-10-121-3/+3
| | | | pg_config_paths.h outside of /src/port.