X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2FConfig.x86-openbsd;h=b55c79436ef8cc052dd7d1cc79b4dc96174b0db4;hb=4bf2de6a2adff75459cf218c8bff67f6cdb91211;hp=82943f06f26fd038bc9f3afee8706eb56181d537;hpb=640f3b9c401b62a199b4858b5fbf31748ddb3c5d;p=sbcl.git diff --git a/src/runtime/Config.x86-openbsd b/src/runtime/Config.x86-openbsd index 82943f0..b55c794 100644 --- a/src/runtime/Config.x86-openbsd +++ b/src/runtime/Config.x86-openbsd @@ -11,13 +11,18 @@ include Config.x86-bsd -OS_SRC += undefineds.c +ASSEM_SRC += ldso-stubs.S +OS_LIBS += -lutil -# KLUDGE: It might seem as though dynamic libraries should work the -# same way on both systems, but in fact gcc supports the "-export-dynamic" -# option on FreeBSD but not on OpenBSD. The documentation I've been -# able to find doesn't seem to begin to explain what's going on (e.g. I -# have never found documentation for the "-export-dynamic" option), -# so I've just punted and left link flags for OpenBSD in their -# pre-dynamic-library-support state. -- WHN 2000-10-02 -LINKFLAGS += -static +# The -Z linker flag conflicts with the default address space +# locations used. If you wish to link the runtime using -Z option then +# please see the comments in src/compiler/x86/parms.lisp + +# XXX why do all the other Configs set LINKFLAGS instead of LDFLAGS? +# LINKFLAGS is only used in src/runtime/GNUmakefile, this causes the +# dladdr test in tools-for-build/ to fail. + +LINKFLAGS += -export-dynamic +LDFLAGS += -export-dynamic + +CFLAGS = -g -Wall -O2