summaryrefslogtreecommitdiff
path: root/src/template/linux
AgeCommit message (Collapse)Author
2016-10-09Use unnamed POSIX semaphores, if available, on Linux and FreeBSD.Tom Lane
We've had support for using unnamed POSIX semaphores instead of System V semaphores for quite some time, but it was not used by default on any platform. Since many systems have rather small limits on the number of SysV semaphores allowed, it seems desirable to switch to POSIX semaphores where they're available and don't create performance or kernel resource problems. Experimentation by me shows that unnamed POSIX semaphores are at least as good as SysV semaphores on Linux, and we previously had a report from Maksym Sobolyev that FreeBSD is significantly worse with SysV semaphores than POSIX ones. So adjust those two platforms to use unnamed POSIX semaphores, if configure can find the necessary library functions. If this goes well, we may switch other platforms as well, but it would be advisable to test them individually first. It's not currently contemplated that we'd encourage users to select a semaphore API for themselves, but anyone who wants to experiment can add PREFERRED_SEMAPHORES=UNNAMED_POSIX (or NAMED_POSIX, or SYSV) to their configure command line to do so. I also tweaked configure to report which API it's selected, mainly so that we can tell that from buildfarm reports. I did not touch the user documentation's discussion about semaphores; that will need some adjustment once the dust settles. Discussion: <8536.1475704230@sss.pgh.pa.us>
2012-10-11Remove _FORTIFY_SOURCEPeter Eisentraut
Apparently, on some glibc versions this causes warnings when optimization is not enabled. Altogether, there appear to be too many incompatibilities surrounding this.
2012-09-30Disable _FORTIFY_SOURCE with ICCPeter Eisentraut
There are apparently some incompatibilities, per buildfarm.
2012-09-29Add _FORTIFY_SOURCE to default compiler options for linux templatePeter Eisentraut
Many distributors use this, so we might as well see the warnings as well.
2010-09-20Remove cvs keywords from all files.Magnus Hagander
2008-10-29Support for Sun Studio compiler on LinuxPeter Eisentraut
This basically takes some build system code that was previously labeled "Solaris" and ties it to the compiler rather than the operating system. Author: Julius Stroffek <Julius.Stroffek@Sun.COM>
2007-09-21If we're gonna provide an --enable-profiling configure option, surelyTom Lane
it ought to know that you need -DLINUX_PROFILE on Linux.
2006-12-12Allow augmenting CPPFLAGS from the configure command line. This generallyPeter Eisentraut
works, but some platform templates overwrote it without asking.
2006-03-11Add CVS tag lines to files that were lacking them.Bruce Momjian
2004-12-02Don't bother adding to cflags/cppflags, just set them because configureBruce Momjian
handles that, and make solaris debug use no optimization.
2004-11-27Add to CPPFLAGS/CFLAGS in template files, don't over-ride them.Bruce Momjian
2004-04-26Unconditionally define:Bruce Momjian
-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS for all ports. It can't hurt if they are not supported, but it makes our job easier for porting. Should fix Darwin compile and other platforms without mucking with the thread detection code.
2004-04-23Add new auto-detection of thread flags.Bruce Momjian
Allow additional thread flags to be added via port templates. Change thread flag names to PTHREAD_CFLAGS and PTHREAD_LIBS to match new configure script.
2004-03-14Mark linux as thread-enabled with new 7.5 tests.Bruce Momjian
2004-02-11Check and set thread-safe functions separately, rather than as a singleBruce Momjian
variable. Remove thread locking for non-thread-safe functions, instead throw a compile error. Platforms will have to re-run tools/thread to record their thread safety.
2003-10-09Remove -pipe on Linux, per reports from Peter.Bruce Momjian
2003-10-09Add -pipe compile for Linux.Bruce Momjian
2003-10-09This centralizes the optimization defaults into configure.in, ratherBruce Momjian
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-09-27Mark Linux for threads.Bruce Momjian
2003-09-27Finalize configuration of thread_test program.Bruce Momjian
2003-09-27Rename thread compile flag. Move thread test program to tools/thread,Bruce Momjian
and improve tests.
2003-09-26Move -D_GNU_SOURCE hack from port header to template, so thatTom Lane
configure's tests see the same compilation environment as the code. Per discussion with Stephan Szabo.
2003-09-13Attempt threading in this order:Bruce Momjian
* 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-03Tighten casting of function call pointers for threads.Bruce Momjian
2003-08-16Make NEED_REENTRANT_FUNC_NAMES _require_ *_r functions, and add tests toBruce Momjian
configure to report if they are not found.
2003-06-14Move thread os defines into template files.Bruce Momjian
2002-03-21Remove -mips2 flag, which breaks the build on some MIPS systems.Peter Eisentraut
Report from Ryan Murray via Debian
2000-10-21Move DLSUFFIX, AROPT, and CFLAGS_SL settings from template toPeter Eisentraut
Makefile.port, since they are of no use to configure and much of the library magic happens in Makefile.port anyway. Use __alpha, not __alpha__, since the former is universally available. Remove -DNOFIXADE from the compile command line and put it in the port include file.
2000-09-29New unified regression test driver, test/regress makefile cleanup,Peter Eisentraut
add "check" and "installcheck" targets, straighten out make variable naming of host_os, host_cpu, etc.
2000-07-15Rename templates to match names in makefiles/Makefile.* and include/port.Peter Eisentraut
Read templates after compiler is detected. Convert all templates to real shell scripts. Rename bsd->openbsd, alpha->osf.
1998-06-12template changesBruce Momjian
1997-04-16Fix a problem with Linux where yacc is *really* bison -yMarc G. Fournier
1997-04-11Change BACKEND to CFLAGSMarc G. Fournier
1997-04-04Move YACC and YFLAGS into the template filesMarc G. Fournier
Clean up the .sample files...comment out all sample entries except for the localhost one
1997-04-04Got AROPT setting backwards...correct itMarc G. Fournier
1997-04-04One helluva mess.Marc G. Fournier
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...