summaryrefslogtreecommitdiffstats
path: root/lib/libthr/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Oops, don't remove -fexceptions flag.davidxu2010-10-081-0/+1
|
* unwind.h was imported, gcc directory is no longer needed.davidxu2010-10-081-1/+0
|
* To support stack unwinding for cancellation points, add -fexceptions flagdavidxu2010-09-251-3/+1
| | | | | | | for them, two functions _pthread_cancel_enter and _pthread_cancel_leave are added to let thread enter and leave a cancellation point, it also makes it possible that other functions can be cancellation points in libraries without having to be rewritten in libthr.
* add code to support stack unwinding when thread exits. note that onlydavidxu2010-09-151-0/+8
| | | | | | defer-mode cancellation works, asynchrnous mode does not work because it lacks of libuwind's support. stack unwinding is not enabled unless LIBTHR_UNWIND_STACK is defined in Makefile.
* Merge from tbemd, with a small amount of rework:imp2010-09-131-1/+3
| | | | | | | | | | For all libthr contexts, use ${MACHINE_CPUARCH} for all libc contexts, use ${MACHINE_ARCH} if it exists, otherwise use ${MACHINE_CPUARCH} Move some common code up a layer (the .PATH statement was the same in all the arch submakefiles). # Hope she hasn't busted powerpc64 with this...
* Unify 32-bit and 64-bit PowerPC libthr support. This reduces codenwhitehorn2010-08-241-2/+2
| | | | | | duplication, and simplifies the TBEMD import. Requested by: imp
* Revert r199830 for now. Too many ports dlopen() libraries linked withkib2009-11-281-1/+1
| | | | libthr, but forgot to link main binary with it.
* Libthr cannot be dynamically loaded into the running process.kib2009-11-261-1/+1
| | | | | | | Mark it with -z nodlopen for now. Discussed with: jhb, kan MFC after: 3 weeks
* Turn on nodelete linker flag because libthr can not be unloaded safely,davidxu2009-03-311-0/+1
| | | | it does hook on to libc.
* Don't reference non-existent __fcntl_compat if WITHOUT_SYSCALL_COMPAT is ↵davidxu2009-03-091-0/+4
| | | | | | defined. Submitted by: Pawel Worach "pawel dot worach at gmail dot com"
* With only one threading library, simplify the logic of setting SHLIBDIR.ru2009-02-241-4/+2
|
* Fix build when WITH_SSP is set explicitly.ru2009-02-211-2/+1
| | | | Submitted by: Jeremie Le Hen
* Honor WITHOUT_INSTALLLIB in some places.jkim2009-02-131-0/+2
|
* Enable GCC stack protection (aka Propolice) for userland:ru2008-06-251-0/+2
| | | | | | | | | | | | | | | | | | | | | - It is opt-out for now so as to give it maximum testing, but it may be turned opt-in for stable branches depending on the consensus. You can turn it off with WITHOUT_SSP. - WITHOUT_SSP was previously used to disable the build of GNU libssp. It is harmless to steal the knob as SSP symbols have been provided by libc for a long time, GNU libssp should not have been much used. - SSP is disabled in a few corners such as system bootstrap programs (sys/boot), process bootstrap code (rtld, csu) and SSP symbols themselves. - It should be safe to use -fstack-protector-all to build world, however libc will be automatically downgraded to -fstack-protector because it breaks rtld otherwise. - This option is unavailable on ia64. Enable GCC stack protection (aka Propolice) for kernel: - It is opt-out for now so as to give it maximum testing. - Do not compile your kernel with -fstack-protector-all, it won't work. Submitted by: Jeremie Le Hen <jeremie@le-hen.org>
* Remove options MK_LIBKSE and DEFAULT_THREAD_LIB now that we no longerru2008-03-291-4/+1
| | | | build libkse. This should fix WITHOUT_LIBTHR builds as a side effect.
* Compile libthr with warnings.ru2008-03-251-0/+1
|
* Convert pthread.map to the format expected by version_gen.awk, and modifydes2008-02-061-1/+2
| | | | | | the Makefile accordingly; libthr now explicitly uses libc's Versions.def. MFC after: 2 weeks
* SYSTEM_SCOPE_ONLY flag is no longer needed, it is the only mode libthrdavidxu2008-01-181-2/+0
| | | | supports.
* Remove warning level and aliasing restrictions.davidxu2007-11-211-2/+0
|
* These are the things that the tinderbox has problems with because itjb2007-11-201-0/+1
| | | | | | | | doesn't use the default CFLAGS which contain -fno-strict-aliasing. Until the code is cleaned up, just add -fno-strict-aliasing to the CFLAGS of these for the tinderboxes' sake, allowing the rest of the tree to have -Werror enabled again.
* Tweak the handling of "WITHOUT_LIBPTHREAD". Also remove the accidentalobrien2007-10-091-2/+2
| | | | | | | treatment of 'LIBKSE' as an "old style" knob. Submitted by: ru Approved by: re(kensmith)
* Always install libpthread.* symlinks if at least one ofru2007-10-011-2/+3
| | | | | | | | | | | | the threading libraries is built. This simplifies the logic in makefiles that need to check if the pthreads support is present. It also fixes a bug where we would build a threading library that we shouldn't have built: for example, building with WITHOUT_LIBTHR and the default value of DEFAULT_THREADING_LIB (libthr) would mistakenly build the libthr library, but not install it. Approved by: re (kensmith)
* Set warning level to 2.davidxu2007-06-081-1/+2
|
* Bump library versions in preparation for 7.0.deischen2007-05-211-1/+1
| | | | Ok'd by: kan
* Fix a logic bug I re-introduced in my patch I sent to Danielru2007-05-181-1/+1
| | | | | | | that would cause the selected shared threading library to be overwritten with its 32-bit version on amd64. PR: amd64/112509
* Allow DEFAULT_THREAD_LIB to be set from /etc/src.conf.deischen2007-05-171-4/+4
| | | | Submitted by: ru
* Enable symbol versioning by default. Use WITHOUT_SYMVER to disable it.deischen2007-05-131-6/+6
| | | | | | | | | | Warning, after symbol versioning is enabled, going back is not easy (use WITHOUT_SYMVER at your own risk). Change the default thread library to libthr. There most likely still needs to be a version bump for at least the thread libraries. If necessary, this will happen later.
* - When building world WITHOUT_LIBPTHREAD, link libthr to libpthread.ru2006-11-261-5/+5
| | | | | - Don't build ngctl(8) and cached(8) if threading libs aren't built. - Fix various issues in a cached(8) makefile.
* Remove alpha left-overs.ru2006-08-221-2/+2
|
* Install shared libpthread library into /lib; needed by someru2006-04-121-1/+5
| | | | /sbin programs.
* Comment out -g compiler option, found by 'FreeBSD Build Options Survey'.davidxu2006-03-271-1/+1
|
* Convert NO_PROFILE and NO_LIB32 to new style.ru2006-03-181-1/+4
|
* The thr_new sysscall was already in libc, don't generate it.davidxu2006-01-111-1/+0
|
* Link libthr to libpthread on Alpha and Sparc.davidxu2005-10-271-0/+10
|
* Bump the shared library version number of all libraries that have notkensmith2005-07-221-1/+1
| | | | | | | been bumped since RELENG_5. Reviewed by: ru Approved by: re (not needed for commit check but in principle...)
* Add a stub libthr(3) man page to document what it is and why, as well asrwatson2005-06-111-0/+2
| | | | | | | | | to point at libmap.conf(5). This will help answer questions about what and why it is, although not in great detail. Approved by: re (scottl) MFC after: 1 week MFC note: When MFC'd, don't MFC mention of work not yet MFC'd.
* Use thr_new syscall to create a new thread, obscure context operationsdavidxu2005-04-231-0/+1
| | | | is no longer needed.
* Add debugger event reporting support, current only TD_CREATE and TD_DEATHdavidxu2005-04-121-0/+1
| | | | events are reported.
* Remove debug symbol from installed library, one can alwaysdavidxu2005-04-061-1/+1
| | | | use compiled version in libthr directory.
* Import my recent 1:1 threading working. some features improved includes:davidxu2005-04-021-6/+12
| | | | | | | | | | | | | | | | 1. fast simple type mutex. 2. __thread tls works. 3. asynchronous cancellation works ( using signal ). 4. thread synchronization is fully based on umtx, mainly, condition variable and other synchronization objects were rewritten by using umtx directly. those objects can be shared between processes via shared memory, it has to change ABI which does not happen yet. 5. default stack size is increased to 1M on 32 bits platform, 2M for 64 bits platform. As the result, some mysql super-smack benchmarks show performance is improved massivly. Okayed by: jeff, mtm, rwatson, scottl
* For variables that are only checked with defined(), don't provideru2004-10-241-1/+1
| | | | any fake value.
* Add rtld-elf to the include path for the rtld to pthread TLS interface.dfr2004-08-151-0/+1
|
* Relink libc_r.a, libc_r.so and libc_r_p.so from libthr to libkse.marcel2003-09-271-12/+0
| | | | | | | | | | | On ia64, where there's no libc_r at all, libkse is now the default thread library by virtue of these links. The reasons for this change are: 1. libkse is slated to become the default thread library anyway, 2. active development and maintenance is only present for libkse, 3. GNOME and KDE, both in the process of being supported on ia64, work better with KSE; even on ia64.
* Axe AINC.ru2003-07-011-1/+0
| | | | Submitted by: bde
* Create compatibility links for libc_r on ia64 to prevent build-timemarcel2003-06-271-0/+12
| | | | | | | | | breakages. Note that runtime compatibility is not guaranteed. Future changes to setjmp/longjmp in libc will break threaded applications linked against libc_r.so.5 on ia64. We pull our "tier 2" card once more... Reviewed by: ru
* Make WARNS2 clean. The fixes mostly included:mtm2003-05-231-0/+2
| | | | | | | | o removed unused variables o explicit inclusion of header files o prototypes for externally defined functions Approved by: re/blanket libthr
* - Adjust the makefiles so we have a per architecture makefile.jeff2003-04-011-0/+1
|
* - Add libthr but don't hook it up to the regular build yet. This is anjeff2003-04-011-0/+26
adaptation of libc_r for the thr system call interface. This is beta quality code.
OpenPOWER on IntegriCloud