35 lines
1.0 KiB
Diff
35 lines
1.0 KiB
Diff
|
|
From 11bdd43001c41d96769e437498bc57e8665ada2f Mon Sep 17 00:00:00 2001
|
||
|
|
From: zhangchenfeng <zhangchenfeng1@huawei.com>
|
||
|
|
Date: Fri, 17 Apr 2020 10:21:28 +0800
|
||
|
|
Subject: [PATCH] bcap-2.32-buildflags
|
||
|
|
|
||
|
|
---
|
||
|
|
Make.Rules | 4 ++--
|
||
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||
|
|
|
||
|
|
diff --git a/Make.Rules b/Make.Rules
|
||
|
|
index f02c770..b5d682b 100644
|
||
|
|
--- a/Make.Rules
|
||
|
|
+++ b/Make.Rules
|
||
|
|
@@ -50,7 +50,7 @@ KERNEL_HEADERS := $(topdir)/libcap/include/uapi
|
||
|
|
IPATH += -fPIC -I$(KERNEL_HEADERS) -I$(topdir)/libcap/include
|
||
|
|
|
||
|
|
CC := gcc
|
||
|
|
-CFLAGS := -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
|
||
|
|
+CFLAGS := $(RPM_OPT_FLAGS) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
|
||
|
|
BUILD_CC := $(CC)
|
||
|
|
BUILD_CFLAGS := $(CFLAGS) $(IPATH)
|
||
|
|
AR := ar
|
||
|
|
@@ -61,7 +61,7 @@ WARNINGS=-Wall -Wwrite-strings \
|
||
|
|
-Wstrict-prototypes -Wmissing-prototypes \
|
||
|
|
-Wnested-externs -Winline -Wshadow
|
||
|
|
LD=$(CC) -Wl,-x -shared
|
||
|
|
-LDFLAGS := #-g
|
||
|
|
+LDFLAGS := $(RPM_LD_FLAGS) #-g
|
||
|
|
LIBCAPLIB := -L$(topdir)/libcap -lcap
|
||
|
|
LIBPSXLIB := -L$(topdir)/libcap -lpsx -lpthread
|
||
|
|
|
||
|
|
--
|
||
|
|
1.8.3.1
|
||
|
|
|