Merge pull request #4085 from vpeter4/fix_flags

Fix compile flags
This commit is contained in:
Stephan Raue 2015-04-14 15:44:34 +02:00
commit aa6095cf86
3 changed files with 26 additions and 2 deletions

View File

@ -38,8 +38,7 @@ make_target() {
RANLIB=$TARGET_RANLIB \ RANLIB=$TARGET_RANLIB \
AR=$TARGET_AR \ AR=$TARGET_AR \
STRIP=$TARGET_STRIP \ STRIP=$TARGET_STRIP \
CFLAGS="$CFLAGS" \ -f unix/Makefile generic LOCAL_UNZIP="$CFLAGS"
-f unix/Makefile generic
} }
makeinstall_target() { makeinstall_target() {

View File

@ -0,0 +1,23 @@
From d8f15e55b4d357ac0a2b384888080b120600d09d Mon Sep 17 00:00:00 2001
From: vpeter4 <peter.vicman@gmail.com>
Date: Wed, 8 Apr 2015 18:27:06 +0200
Subject: [PATCH] cflags
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index c904eaf..df0fe3e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
CPPFLAGS := -I.
-CFLAGS := -g -Wall -Werror
+CFLAGS += -g -Wall -Werror
INSTALL := install
DESTDIR :=
SPECFILE := keyutils.spec
--
1.8.1.2

View File

@ -40,6 +40,8 @@ pre_configure_init() {
# plymouth-lite dont support to build in subdirs # plymouth-lite dont support to build in subdirs
cd $ROOT/$PKG_BUILD cd $ROOT/$PKG_BUILD
rm -rf .$TARGET_NAME-init rm -rf .$TARGET_NAME-init
LDFLAGS="$LDFLAGS -lm"
} }
makeinstall_init() { makeinstall_init() {