Navigation Menu

Skip to content

Commit

Permalink
[build] Fix building on OpenBSD 5.4
Browse files Browse the repository at this point in the history
OpenBSD 5.4 seems to generate dynamically linked binaries by default,
which breaks our build process.  Fix by forcing the linker to always
create static binaries.

Reported-by: Jiri B <jirib@devio.us>
Tested-by: Jiri B <jirib@devio.us>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Dec 2, 2013
1 parent d4f7816 commit 1403bda
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Makefile.housekeeping
Expand Up @@ -500,6 +500,11 @@ CFLAGS += $(FS_FLAGS) $(DS_FLAGS)
endif
LDFLAGS += --gc-sections

# Force creation of static binaries (required for OpenBSD, does no
# harm on other platforms).
#
LDFLAGS += -static

# compiler.h is needed for our linking and debugging system
#
CFLAGS += -include include/compiler.h
Expand Down

0 comments on commit 1403bda

Please sign in to comment.