Browse Source

crconf: Pass CFLAGS properly

CFLAGS were not being passed, breaking ASLR builds.

Switched to using PKG_SOURCE_DATE for the version.

Added PKG_BUILD_PARALLEL for faster compilation.

Added license information.

Small Makefile cleanups.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
lilik-openwrt-22.03
Rosen Penev 5 years ago
parent
commit
35a258a55c
No known key found for this signature in database GPG Key ID: 36D31CFA845F0E3B
1 changed files with 7 additions and 4 deletions
  1. +7
    -4
      utils/crconf/Makefile

+ 7
- 4
utils/crconf/Makefile View File

@ -6,19 +6,20 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_SOURCE_VERSION:=8bd996400d087028ba56b724abc1f5b378eaa77f
PKG_NAME:=crconf PKG_NAME:=crconf
PKG_VERSION:=pre2-$(PKG_SOURCE_VERSION)
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://git.code.sf.net/p/crconf/code PKG_SOURCE_URL:=https://git.code.sf.net/p/crconf/code
PKG_MIRROR_HASH:=f772306c0b005c18f481b73e3be193dba5ebb9f6f3bf20cb3f67c4a80dac0613
PKG_SOURCE_DATE:=2018-03-02
PKG_SOURCE_VERSION:=8bd996400d087028ba56b724abc1f5b378eaa77f
PKG_MIRROR_HASH:=454307cb40a8743b53933cbdd4d9367996ffcf1bd2946413d2862cf050df3bca
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com> PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
PKG_LICENSE:=GPL-2.0-only
PKG_INSTALL:=1 PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
@ -37,6 +38,8 @@ define Package/crconf/description
Most interesting stuff you can find on https://wiki.strongswan.org Most interesting stuff you can find on https://wiki.strongswan.org
endef endef
MAKE_FLAGS += CFLAGS="$(TARGET_CFLAGS) -I../include"
define Package/crconf/install define Package/crconf/install
$(INSTALL_DIR) $(1)/sbin $(INSTALL_DIR) $(1)/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/crconf $(1)/sbin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/crconf $(1)/sbin


Loading…
Cancel
Save