aboutsummaryrefslogtreecommitdiff
path: root/package/sysklogd/sysklogd.mk
diff options
context:
space:
mode:
authorGravatar Romain Naour <romain.naour@gmail.com>2016-02-20 12:28:50 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2016-02-20 21:22:31 +0100
commitea4266211d7e9268cc8bf04f986abaa1135d48a2 (patch)
tree4aa22b1404689760e781192d695cdc4d79cd397a /package/sysklogd/sysklogd.mk
parent498055a8c2e66a8a36b6205555b1c7e806b4d31f (diff)
downloadbuildroot-ea4266211d7e9268cc8bf04f986abaa1135d48a2.tar.gz
buildroot-ea4266211d7e9268cc8bf04f986abaa1135d48a2.tar.bz2
sysklogd: override SKFLAGS with TARGET_CFLAGS
TARGET_CFLAGS is not taken into account since SKFLAGS is used as CFLAGS. We need to override SKFLAGS with TARGET_CFLAGS but keep -DSYSV which was present in SKFLAGS. Improve the previous fix introduced by 8e3a5c13546451c0c6ceb8bc64e4397ceed14aca. Fixes: http://autobuild.buildroot.net/results/2fb/2fb94ecfdc32761a09da35e6fcbdd512847ec911 Signed-off-by: Romain Naour <romain.naour@gmail.com> Reported-by: Peter Korsgaard <peter@korsgaard.com> Cc: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/sysklogd/sysklogd.mk')
-rw-r--r--package/sysklogd/sysklogd.mk12
1 files changed, 3 insertions, 9 deletions
diff --git a/package/sysklogd/sysklogd.mk b/package/sysklogd/sysklogd.mk
index 9e315bcdf3..49997d4f23 100644
--- a/package/sysklogd/sysklogd.mk
+++ b/package/sysklogd/sysklogd.mk
@@ -14,16 +14,10 @@ ifeq ($(BR2_PACKAGE_BUSYBOX),y)
SYSKLOGD_DEPENDENCIES = busybox
endif
-# CS PowerPC 2012.03 triggers compiler bug.
-ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_POWERPC_E500V2),y)
-define SYSKLOGD_WORKAROUND_COMPILER_BUG
- $(SED) 's/-O3/-O2/' $(@D)/Makefile
-endef
-SYSKLOGD_POST_PATCH_HOOKS = SYSKLOGD_WORKAROUND_COMPILER_BUG
-endif
-
+# Override SKFLAGS which is used as CFLAGS.
define SYSKLOGD_BUILD_CMDS
- $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
+ $(MAKE) $(TARGET_CONFIGURE_OPTS) SKFLAGS="$(TARGET_CFLAGS) -DSYSV" \
+ -C $(@D)
endef
define SYSKLOGD_INSTALL_TARGET_CMDS