summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libthr/Makefile1
-rw-r--r--lib/libthr/arch/i386/Makefile.inc5
-rw-r--r--lib/libthr/sys/Makefile.inc2
3 files changed, 7 insertions, 1 deletions
diff --git a/lib/libthr/Makefile b/lib/libthr/Makefile
index 7bd4c63..6bfa593 100644
--- a/lib/libthr/Makefile
+++ b/lib/libthr/Makefile
@@ -22,5 +22,6 @@ PRECIOUSLIB= yes
.include "${.CURDIR}/thread/Makefile.inc"
.include "${.CURDIR}/sys/Makefile.inc"
+.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
.include <bsd.lib.mk>
diff --git a/lib/libthr/arch/i386/Makefile.inc b/lib/libthr/arch/i386/Makefile.inc
new file mode 100644
index 0000000..0c86284
--- /dev/null
+++ b/lib/libthr/arch/i386/Makefile.inc
@@ -0,0 +1,5 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/sys ${.CURDIR}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}
+
+SRCS+= _setcurthread.c _curthread.S
diff --git a/lib/libthr/sys/Makefile.inc b/lib/libthr/sys/Makefile.inc
index d27eeb8..59018f7 100644
--- a/lib/libthr/sys/Makefile.inc
+++ b/lib/libthr/sys/Makefile.inc
@@ -2,4 +2,4 @@
.PATH: ${.CURDIR}/sys ${.CURDIR}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}
-SRCS+= thr_error.c _curthread.S _setcurthread.c
+SRCS+= thr_error.c
OpenPOWER on IntegriCloud