Fix build on OpenBSD systems with PIE enabled by default in the C compiler.
[sbcl.git] / src / runtime / Config.generic-openbsd
1 # -*- makefile -*- for the C-level run-time support for SBCL
2
3 # This software is part of the SBCL system. See the README file for
4 # more information.
5 #
6 # This software is derived from the CMU CL system, which was
7 # written at Carnegie Mellon University and released into the
8 # public domain. The software is in the public domain and is
9 # provided with absolutely no warranty. See the COPYING and CREDITS
10 # files for more information.
11
12 LINKFLAGS += -export-dynamic
13 OS_LIBS += -lutil
14
15 # If the compiler recognizes a -nopie flag then we're building on a
16 # PIE-by-default system, so disable PIE.
17 ifneq ($(shell $(CC) -dumpspecs 2>/dev/null | grep -e -nopie),)
18 CFLAGS += -fno-pie
19 LINKFLAGS += -nopie
20 LDFLAGS += -nopie
21 endif