summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/preinstall.am
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2013-08-14 10:21:41 +1000
committerChris Johns <chrisj@rtems.org>2013-08-14 10:21:41 +1000
commit03acc5915e002f0b03eee9e86212209705cca6d6 (patch)
tree93c452a3f546f0d6f4456481c78e9fc6d4a6e082 /cpukit/posix/preinstall.am
parentposix: Handle recursive attributes correctly. (diff)
downloadrtems-03acc5915e002f0b03eee9e86212209705cca6d6.tar.bz2
posix: Change pthread_once to be SMP safe.
Change pthread_once from using disabled pre-emption to using a pthread mutex making it SMP safe. GCC using a posix threading model uses pthread_once. The pthread mutex requires at least 1 mutex is configured so confdefs.h has been updated to account for the internal mutex.
Diffstat (limited to 'cpukit/posix/preinstall.am')
-rw-r--r--cpukit/posix/preinstall.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/posix/preinstall.am b/cpukit/posix/preinstall.am
index 093a9df914..d0e238cd15 100644
--- a/cpukit/posix/preinstall.am
+++ b/cpukit/posix/preinstall.am
@@ -84,6 +84,10 @@ $(PROJECT_INCLUDE)/rtems/posix/muteximpl.h: include/rtems/posix/muteximpl.h $(PR
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/muteximpl.h
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/muteximpl.h
+$(PROJECT_INCLUDE)/rtems/posix/onceimpl.h: include/rtems/posix/onceimpl.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp)
+ $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/onceimpl.h
+PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/onceimpl.h
+
$(PROJECT_INCLUDE)/rtems/posix/posixapi.h: include/rtems/posix/posixapi.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/posixapi.h
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/posixapi.h