X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2FConfig.x86-freebsd;h=423dc5a7d0bd1fec89deaf07d49d5442741136a4;hb=447477e72bd4fe54e678a28bdcc4a2802797d6ed;hp=7bbbf4e9ad7adf976a2e665a7e1a05b9a60c67d6;hpb=c3887143fdc6da9b63d18ce5cde2a0c037ea3a24;p=sbcl.git diff --git a/src/runtime/Config.x86-freebsd b/src/runtime/Config.x86-freebsd index 7bbbf4e..423dc5a 100644 --- a/src/runtime/Config.x86-freebsd +++ b/src/runtime/Config.x86-freebsd @@ -1,16 +1,23 @@ -# -*- makefile -*- +# -*- makefile -*- for the C-level run-time support for SBCL + +# This software is part of the SBCL system. See the README file for +# more information. +# +# This software is derived from the CMU CL system, which was +# written at Carnegie Mellon University and released into the +# public domain. The software is in the public domain and is +# provided with absolutely no warranty. See the COPYING and CREDITS +# files for more information. + include Config.x86-bsd -# It turns out that this file is also useable for FreeBSD, and is -# preferable to the stub code in bsd-os.c (#ifdef-protected by a test -# on the symbold DL_WORKAROUND). -# This may also be the case for OpenBSD. -# TODO: Rename linux-stub.S (to ldso-stubs.S, perhaps?) and remove the -# stub code from bsd-os.c. -ASSEM_SRC += linux-stubs.S +ASSEM_SRC += ldso-stubs.S -# Until sbcl-0.6.7.3, we used "OS_LINK_FLAGS=-static" here, which +# Until sbcl-0.6.7.3, we used "LINKFLAGS+=-static" here, which # worked fine for most things, but LOAD-FOREIGN & friends require # dlopen() etc., which in turn depend on dynamic linking of the # runtime. -OS_LINK_FLAGS = -dynamic -export-dynamic +LINKFLAGS += -dynamic -export-dynamic +LINKFLAGS += $(shell if grep LISP_FEATURE_SB_THREAD genesis/config.h \ + > /dev/null 2>&1; \ + then echo "-lpthread"; fi)