Skip to content
Permalink
Browse files

bzip2: fix hardening build

Set the LDFLAGS otherwise it will not get the target hardening flags or
any other generic flags provided in the LDFLAGS

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
  • Loading branch information...
hauke committed Jan 1, 2019
1 parent e42a227 commit 6be064c788f5c2edc49c24c9e9c2b48d63a8811c
Showing with 4 additions and 4 deletions.
  1. +4 −4 package/utils/bzip2/Makefile
@@ -56,14 +56,14 @@ define Package/bzip2/description
endef

TARGET_CFLAGS += \
$(FPIC) \
$(TARGET_LDFLAGS)
$(FPIC)

CONFIGURE_ARGS += --prefix=/usr

MAKE_FLAGS += \
-f Makefile-libbz2_so \
CFLAGS="$(TARGET_CFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)" \
all

define Build/InstallDev
@@ -89,11 +89,11 @@ define Package/bzip2/install
endef

HOST_CFLAGS += \
$(FPIC) \
$(HOST_LDFLAGS)
$(FPIC)

HOST_MAKE_FLAGS+= \
CFLAGS="$(HOST_CFLAGS)" \
LDFLAGS="$(HOST_LDFLAGS)" \
all

HOST_CONFIGURE_ARGS+= \

0 comments on commit 6be064c

Please sign in to comment.
You can’t perform that action at this time.