mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 14:23:38 +00:00
tools/libressl: ensure PIC-only object compilation
Line up configure arguments for cleaner git diff and editing and grepping. LibreSSL must be built with PIC, and has the flags for it already in CFLAGS. Add the configure option native to LibreSSL to use only PIC in objects, which further enforces that each object in the library has the PIC flag to prevent a mixture of PIC / non-PIC objects within it. Ref: 96a940308 ("tools: libressl: always build as PIC") Signed-off-by: Michael Pratt <mcpratt@pm.me>
This commit is contained in:
parent
975e0f70ca
commit
7c5cabd24b
@ -24,9 +24,15 @@ HOST_BUILD_PARALLEL:=1
|
|||||||
include $(INCLUDE_DIR)/host-build.mk
|
include $(INCLUDE_DIR)/host-build.mk
|
||||||
|
|
||||||
HOSTCC := $(HOSTCC_NOCACHE)
|
HOSTCC := $(HOSTCC_NOCACHE)
|
||||||
HOST_CONFIGURE_ARGS += --enable-static --disable-shared --disable-tests
|
|
||||||
HOST_CFLAGS += $(HOST_FPIC)
|
HOST_CFLAGS += $(HOST_FPIC)
|
||||||
|
|
||||||
|
HOST_CONFIGURE_ARGS += \
|
||||||
|
--enable-static \
|
||||||
|
--disable-shared \
|
||||||
|
--with-pic \
|
||||||
|
--disable-tests
|
||||||
|
|
||||||
ifeq ($(GNU_HOST_NAME),x86_64-linux-gnux32)
|
ifeq ($(GNU_HOST_NAME),x86_64-linux-gnux32)
|
||||||
HOST_CONFIGURE_ARGS += --disable-asm
|
HOST_CONFIGURE_ARGS += --disable-asm
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user