summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_private.h
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2006-01-10 04:53:03 +0000
committerdavidxu <davidxu@FreeBSD.org>2006-01-10 04:53:03 +0000
commit1218aa562705d6bca13ef113ee55d30b3a1d62ea (patch)
treef7d7ddab57a2b5cc1834f38301277565fc1854d4 /lib/libthr/thread/thr_private.h
parentacd73492834881ccf1de79cea2721f1140446bbc (diff)
downloadFreeBSD-src-1218aa562705d6bca13ef113ee55d30b3a1d62ea.zip
FreeBSD-src-1218aa562705d6bca13ef113ee55d30b3a1d62ea.tar.gz
Use macro STATIC_LIB_REQUIRE to declare a symbol should be linked into
static binary.
Diffstat (limited to 'lib/libthr/thread/thr_private.h')
-rw-r--r--lib/libthr/thread/thr_private.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libthr/thread/thr_private.h b/lib/libthr/thread/thr_private.h
index 653ae31..bf10228 100644
--- a/lib/libthr/thread/thr_private.h
+++ b/lib/libthr/thread/thr_private.h
@@ -83,6 +83,12 @@ typedef TAILQ_HEAD(atfork_head, pthread_atfork) atfork_head;
#define THR_ASSERT(cond, msg)
#endif
+#ifdef PIC
+# define STATIC_LIB_REQUIRE(name)
+#else
+# define STATIC_LIB_REQUIRE(name) __asm (".globl " #name)
+#endif
+
#define TIMESPEC_ADD(dst, src, val) \
do { \
(dst)->tv_sec = (src)->tv_sec + (val)->tv_sec; \
OpenPOWER on IntegriCloud