Blame SOURCES/libcap-2.48-buildflags.patch
|
|
12fca1 |
diff --color -ru a/Make.Rules b/Make.Rules
|
|
|
12fca1 |
--- a/Make.Rules 2021-02-05 06:52:17.000000000 +0100
|
|
|
12fca1 |
+++ b/Make.Rules 2021-12-13 17:09:11.225308225 +0100
|
|
|
12fca1 |
@@ -56,10 +56,10 @@
|
|
|
12fca1 |
|
|
|
12fca1 |
CC := $(CROSS_COMPILE)gcc
|
|
|
12fca1 |
DEFINES := -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
|
|
|
12fca1 |
-COPTS ?= -O2
|
|
|
12fca1 |
+COPTS ?= $(RPM_OPT_FLAGS)
|
|
|
12fca1 |
CFLAGS ?= $(COPTS) $(DEFINES)
|
|
|
12fca1 |
BUILD_CC ?= $(CC)
|
|
|
12fca1 |
-BUILD_COPTS ?= -O2
|
|
|
12fca1 |
+BUILD_COPTS ?= $(RPM_OPT_FLAGS)
|
|
|
12fca1 |
BUILD_CFLAGS ?= $(BUILD_COPTS) $(DEFINES) $(IPATH)
|
|
|
12fca1 |
AR := $(CROSS_COMPILE)ar
|
|
|
12fca1 |
RANLIB := $(CROSS_COMPILE)ranlib
|
|
|
12fca1 |
@@ -69,7 +69,7 @@
|
|
|
12fca1 |
-Wstrict-prototypes -Wmissing-prototypes \
|
|
|
12fca1 |
-Wnested-externs -Winline -Wshadow
|
|
|
12fca1 |
LD=$(CC) -Wl,-x -shared
|
|
|
12fca1 |
-LDFLAGS ?= #-g
|
|
|
12fca1 |
+LDFLAGS ?= $(RPM_LD_FLAGS)
|
|
|
12fca1 |
LIBCAPLIB := -L$(topdir)/libcap -lcap
|
|
|
12fca1 |
PSXLINKFLAGS := -lpthread -Wl,-wrap,pthread_create
|
|
|
12fca1 |
LIBPSXLIB := -L$(topdir)/libcap -lpsx $(PSXLINKFLAGS)
|
|
|
12fca1 |
@@ -104,7 +104,7 @@
|
|
|
12fca1 |
|
|
|
12fca1 |
ifeq ($(PTHREADS),yes)
|
|
|
12fca1 |
GO ?= go
|
|
|
12fca1 |
-GOLANG ?= $(shell if [ -n "$(shell $(GO) version 2>/dev/null)" ]; then echo yes ; else echo no ; fi)
|
|
|
12fca1 |
+GOLANG ?= no
|
|
|
12fca1 |
ifeq ($(GOLANG),yes)
|
|
|
12fca1 |
GOROOT ?= $(shell $(GO) env GOROOT)
|
|
|
12fca1 |
GOCGO ?= $(shell if [ "$(shell $(GO) env CGO_ENABLED)" = 1 ]; then echo yes ; else echo no ; fi)
|