0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-10 05:58:56 +02:00

ircd: Eliminate defaulted weak symbols for lib; minor relaxations remain.

This commit is contained in:
Jason Volk 2019-10-05 18:04:13 -07:00
parent e5f72b7855
commit cd7ff331e9
2 changed files with 16 additions and 6 deletions

View file

@ -18,11 +18,11 @@ AM_CPPFLAGS = \
AM_LDFLAGS = \
-version-info 3:2:0 \
-Wl,--no-undefined-version \
-Wl,--unresolved-symbols=report-all \
-Wl,--weak-unresolved-symbols \
-Wl,--unresolved-symbols=ignore-in-shared-libs \
-Wl,-z,nodelete \
-Wl,-z,nodlopen \
-Wl,-z,now \
-Wl,-z,lazy \
$(PLATFORM_LDFLAGS) \
@EXTRA_LDFLAGS@ \
###

View file

@ -1383,18 +1383,22 @@ ircd::fs::aio::system;
// init
//
__attribute__((weak))
#ifndef IRCD_USE_AIO
[[gnu::weak]]
ircd::fs::aio::init::init()
{
assert(!system);
}
#endif
__attribute__((weak))
#ifndef IRCD_USE_AIO
[[gnu::weak]]
ircd::fs::aio::init::~init()
noexcept
{
assert(!system);
}
#endif
///////////////////////////////////////////////////////////////////////////////
//
@ -1433,18 +1437,22 @@ ircd::fs::iou::system;
// init
//
__attribute__((weak))
#ifndef IRCD_USE_IOU
[[gnu::weak]]
ircd::fs::iou::init::init()
{
assert(!system);
}
#endif
__attribute__((weak))
#ifndef IRCD_USE_IOU
[[gnu::weak]]
ircd::fs::iou::init::~init()
noexcept
{
assert(!system);
}
#endif
///////////////////////////////////////////////////////////////////////////////
//
@ -1892,6 +1900,7 @@ ircd::fs::reflect(const op &op)
}
#ifndef IRCD_USE_AIO
[[gnu::weak]]
ircd::fs::op
ircd::fs::aio::translate(const int &val)
{
@ -1900,6 +1909,7 @@ ircd::fs::aio::translate(const int &val)
#endif
#ifndef IRCD_USE_IOU
[[gnu::weak]]
ircd::fs::op
ircd::fs::iou::translate(const int &val)
{