aboutsummaryrefslogtreecommitdiff
path: root/lib/libthr
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2016-09-24 15:11:27 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2016-09-24 15:11:27 +0000
commit2b4da8aa2021023fed30cb168d9770d431760882 (patch)
treeb3fe596dc928c6aef978758bef4e4a40e5e4ad03 /lib/libthr
parentd44268d13592e507e585988f4c4a7d5534e9fc23 (diff)
downloadsrc-2b4da8aa2021023fed30cb168d9770d431760882.tar.gz
src-2b4da8aa2021023fed30cb168d9770d431760882.zip
When MAKEOBJDIRPREFIX points to a case-insensitive file system, the
build can break when different source files create the same target files (case-insensitivity speaking). This is the case for object files compiled with -fpic and shared libraries. The former uses an extension of ".So", and the latter an extension ".so". Rename shared object files from *.So to *.pico to match what NetBSD does. See also r305855 MFC after: 1 month Sponsored by: Bracket Computing Differential Revision: https://reviews.freebsd.org/D7906
Notes
Notes: svn path=/head/; revision=306297
Diffstat (limited to 'lib/libthr')
-rw-r--r--lib/libthr/support/Makefile.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libthr/support/Makefile.inc b/lib/libthr/support/Makefile.inc
index 35a15f859264..1814f8a5f3da 100644
--- a/lib/libthr/support/Makefile.inc
+++ b/lib/libthr/support/Makefile.inc
@@ -15,15 +15,15 @@ CFLAGS+= -I${.CURDIR}/../libc/${MACHINE_CPUARCH}
SYSCALLS= thr_new
SYSCALL_SRC= ${SYSCALLS:S/$/.S/}
-SYSCALL_OBJ= ${SYSCALLS:S/$/.So/}
+SYSCALL_OBJ= ${SYSCALLS:S/$/.pico/}
${SYSCALL_SRC}:
printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' > ${.TARGET}
LIBC_OBJS=
-SOBJS+= thr_libc.So
+SOBJS+= thr_libc.pico
CLEANFILES+= ${SYSCALL_SRC} ${SYSCALL_OBJ} ${LIBC_OBJS}
-thr_libc.So: ${SYSCALL_OBJ} ${LIBC_OBJS}
+thr_libc.pico: ${SYSCALL_OBJ} ${LIBC_OBJS}
${CC} -fPIC -nostdlib -o ${.TARGET} -r ${.ALLSRC}