Selaa lähdekoodia

[build] Fix building on OpenBSD 5.4

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>
tags/v1.20.1
Michael Brown 10 vuotta sitten
vanhempi
commit
1403bda951
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5
    0
      src/Makefile.housekeeping

+ 5
- 0
src/Makefile.housekeeping Näytä tiedosto

500
 endif
500
 endif
501
 LDFLAGS		+= --gc-sections
501
 LDFLAGS		+= --gc-sections
502
 
502
 
503
+# Force creation of static binaries (required for OpenBSD, does no
504
+# harm on other platforms).
505
+#
506
+LDFLAGS		+= -static
507
+
503
 # compiler.h is needed for our linking and debugging system
508
 # compiler.h is needed for our linking and debugging system
504
 #
509
 #
505
 CFLAGS		+= -include include/compiler.h
510
 CFLAGS		+= -include include/compiler.h

Loading…
Peruuta
Tallenna