mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
packages: setup_toolchain $TARGET only called after package is sourced
Packages referencing variables defined in setup_toolchain such as CC, CXX, AR, CFLAGS, LDFLAGS, HOST_CC etc. etc. must only reference these variables in pre_build()/pre_configure()/pre_make() etc. functions, as the variables will not be available when the package is sourced, but will be available after the call to setup_toolchain() from scripts/build.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
||||
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="diskdev_cmds"
|
||||
PKG_VERSION="332.14"
|
||||
@@ -10,9 +11,9 @@ PKG_URL="http://www.opensource.apple.com/tarballs/diskdev_cmds/$PKG_NAME-$PKG_VE
|
||||
PKG_DEPENDS_TARGET="toolchain openssl"
|
||||
PKG_LONGDESC="The fsck and mkfs utliities for hfs and hfsplus filesystems."
|
||||
|
||||
PKG_MAKE_OPTS_TARGET="-f Makefile.lnx CC=$CC"
|
||||
|
||||
pre_make_target() {
|
||||
PKG_MAKE_OPTS_TARGET="-f Makefile.lnx CC=$CC"
|
||||
|
||||
export CFLAGS="$TARGET_CFLAGS -g3 -Wall -I$PKG_BUILD/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user