pixiewps: use compiler, linker options of the build system
pixiewps has its own CFLAGS setting and uses LDFLAGS from environment variable. When PKG_ALSR_PIE was enabled, objects were not compiled with -fPIC supplied from the build system and the final link step would fail because of the -pie option Fixes #5590 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
parent
e95edc9142
commit
90843cff63
|
@ -1,4 +1,4 @@
|
||||||
# Copyright (C) 2017 Yousong Zhou
|
# Copyright (C) 2017-2018 Yousong Zhou
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
|
@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=pixiewps
|
PKG_NAME:=pixiewps
|
||||||
PKG_VERSION:=1.4.2
|
PKG_VERSION:=1.4.2
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>
|
PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
|
@ -35,6 +35,12 @@ define Package/pixiewps/description
|
||||||
meant for educational purposes only.
|
meant for educational purposes only.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
# override flags by pixiewps' own Makefile
|
||||||
|
MAKE_FLAGS += \
|
||||||
|
CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
|
||||||
|
CPPFLAGS="$(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
|
||||||
|
LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" \
|
||||||
|
|
||||||
define Package/pixiewps/install
|
define Package/pixiewps/install
|
||||||
$(INSTALL_DIR) $(1)/usr/bin
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/pixiewps $(1)/usr/bin/
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/pixiewps $(1)/usr/bin/
|
||||||
|
|
Loading…
Reference in New Issue