forked from Imagelibrary/rtems
build: Merge libstdthreads/Makefile.am
This commit is contained in:
@@ -364,6 +364,10 @@ libcpukit_a_SOURCES += libfs/src/rfs/rtems-rfs-trace.c
|
|||||||
libcpukit_a_SOURCES += libi2c/libi2c.c
|
libcpukit_a_SOURCES += libi2c/libi2c.c
|
||||||
libcpukit_a_SOURCES += libmd/md4.c
|
libcpukit_a_SOURCES += libmd/md4.c
|
||||||
libcpukit_a_SOURCES += libmd/md5.c
|
libcpukit_a_SOURCES += libmd/md5.c
|
||||||
|
libcpukit_a_SOURCES += libstdthreads/call_once.c
|
||||||
|
libcpukit_a_SOURCES += libstdthreads/cnd.c
|
||||||
|
libcpukit_a_SOURCES += libstdthreads/mtx.c
|
||||||
|
libcpukit_a_SOURCES += libstdthreads/tss.c
|
||||||
libcpukit_a_SOURCES += sapi/src/chainappendnotify.c
|
libcpukit_a_SOURCES += sapi/src/chainappendnotify.c
|
||||||
libcpukit_a_SOURCES += sapi/src/chaingetnotify.c
|
libcpukit_a_SOURCES += sapi/src/chaingetnotify.c
|
||||||
libcpukit_a_SOURCES += sapi/src/chaingetwait.c
|
libcpukit_a_SOURCES += sapi/src/chaingetwait.c
|
||||||
@@ -402,6 +406,12 @@ libcpukit_a_SOURCES += sapi/src/sapirbtreeinsert.c
|
|||||||
libcpukit_a_SOURCES += sapi/src/tcsimpleinstall.c
|
libcpukit_a_SOURCES += sapi/src/tcsimpleinstall.c
|
||||||
libcpukit_a_SOURCES += sapi/src/version.c
|
libcpukit_a_SOURCES += sapi/src/version.c
|
||||||
|
|
||||||
|
if HAS_PTHREADS
|
||||||
|
|
||||||
|
libcpukit_a_SOURCES += libstdthreads/thrd.c
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
if LIBDL
|
if LIBDL
|
||||||
|
|
||||||
libcpukit_a_SOURCES += libdl/dlfcn.c
|
libcpukit_a_SOURCES += libdl/dlfcn.c
|
||||||
@@ -608,7 +618,6 @@ all-local: generate-vc-key
|
|||||||
_SUBDIRS = . score rtems posix
|
_SUBDIRS = . score rtems posix
|
||||||
_SUBDIRS += libnetworking
|
_SUBDIRS += libnetworking
|
||||||
_SUBDIRS += libmisc
|
_SUBDIRS += libmisc
|
||||||
_SUBDIRS += libstdthreads
|
|
||||||
_SUBDIRS += wrapup
|
_SUBDIRS += wrapup
|
||||||
|
|
||||||
# other libraries
|
# other libraries
|
||||||
|
|||||||
@@ -499,7 +499,6 @@ score/cpu/no_cpu/Makefile
|
|||||||
posix/Makefile
|
posix/Makefile
|
||||||
libnetworking/Makefile
|
libnetworking/Makefile
|
||||||
libmisc/Makefile
|
libmisc/Makefile
|
||||||
libstdthreads/Makefile
|
|
||||||
zlib/Makefile
|
zlib/Makefile
|
||||||
telnetd/Makefile
|
telnetd/Makefile
|
||||||
pppd/Makefile
|
pppd/Makefile
|
||||||
|
|||||||
@@ -1,16 +0,0 @@
|
|||||||
include $(top_srcdir)/automake/compile.am
|
|
||||||
|
|
||||||
noinst_LIBRARIES = libstdthreads.a
|
|
||||||
|
|
||||||
libstdthreads_a_CFLAGS = -std=c11
|
|
||||||
|
|
||||||
libstdthreads_a_SOURCES =
|
|
||||||
libstdthreads_a_SOURCES += call_once.c
|
|
||||||
libstdthreads_a_SOURCES += cnd.c
|
|
||||||
libstdthreads_a_SOURCES += mtx.c
|
|
||||||
if HAS_PTHREADS
|
|
||||||
libstdthreads_a_SOURCES += thrd.c
|
|
||||||
endif
|
|
||||||
libstdthreads_a_SOURCES += tss.c
|
|
||||||
|
|
||||||
include $(top_srcdir)/automake/local.am
|
|
||||||
@@ -62,8 +62,8 @@ cnd_signal(cnd_t *cond)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
cnd_timedwait(cnd_t *restrict cond, mtx_t *restrict mtx,
|
cnd_timedwait(cnd_t *__restrict cond, mtx_t *__restrict mtx,
|
||||||
const struct timespec *restrict ts)
|
const struct timespec *__restrict ts)
|
||||||
{
|
{
|
||||||
|
|
||||||
switch (_Condition_Wait_recursive_timed(cond, mtx, ts)) {
|
switch (_Condition_Wait_recursive_timed(cond, mtx, ts)) {
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ mtx_lock(mtx_t *mtx)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
mtx_timedlock(mtx_t *restrict mtx, const struct timespec *restrict ts)
|
mtx_timedlock(mtx_t *__restrict mtx, const struct timespec *__restrict ts)
|
||||||
{
|
{
|
||||||
|
|
||||||
switch (_Mutex_recursive_Acquire_timed(mtx, ts)) {
|
switch (_Mutex_recursive_Acquire_timed(mtx, ts)) {
|
||||||
|
|||||||
@@ -19,8 +19,6 @@ TMP_LIBS += ../libcpukit.a
|
|||||||
TMP_LIBS += ../rtems/librtems.a
|
TMP_LIBS += ../rtems/librtems.a
|
||||||
TMP_LIBS += ../posix/libposix.a
|
TMP_LIBS += ../posix/libposix.a
|
||||||
|
|
||||||
TMP_LIBS += ../libstdthreads/libstdthreads.a
|
|
||||||
|
|
||||||
TMP_LIBS += ../libmisc/libmonitor.a
|
TMP_LIBS += ../libmisc/libmonitor.a
|
||||||
TMP_LIBS += ../libmisc/libuntar.a
|
TMP_LIBS += ../libmisc/libuntar.a
|
||||||
TMP_LIBS += ../libmisc/libstackchk.a
|
TMP_LIBS += ../libmisc/libstackchk.a
|
||||||
|
|||||||
Reference in New Issue
Block a user