|
|
1603ed |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
4503f6 |
From: Peter Jones <pjones@redhat.com>
|
|
|
4503f6 |
Date: Thu, 8 Aug 2019 05:41:36 -0400
|
|
|
4503f6 |
Subject: [PATCH] Add 'RPMOPTFLAGS' to CFLAGS for some stuff.
|
|
|
4503f6 |
|
|
|
4503f6 |
---
|
|
|
4503f6 |
extlinux/Makefile | 4 ++--
|
|
|
4503f6 |
linux/Makefile | 4 ++--
|
|
|
4503f6 |
mtools/Makefile | 4 ++--
|
|
|
4503f6 |
utils/Makefile | 4 ++--
|
|
|
4503f6 |
4 files changed, 8 insertions(+), 8 deletions(-)
|
|
|
4503f6 |
|
|
|
4503f6 |
diff --git a/extlinux/Makefile b/extlinux/Makefile
|
|
|
1603ed |
index 1721ee54..d504e231 100644
|
|
|
4503f6 |
--- a/extlinux/Makefile
|
|
|
4503f6 |
+++ b/extlinux/Makefile
|
|
|
4503f6 |
@@ -18,9 +18,9 @@ include $(MAKEDIR)/syslinux.mk
|
|
|
4503f6 |
|
|
|
4503f6 |
OPTFLAGS = -g -Os
|
|
|
4503f6 |
INCLUDES = -I$(SRC) -I$(objdir) -I$(SRC)/../libinstaller
|
|
|
4503f6 |
-CFLAGS = $(GCCWARN) -Wno-sign-compare -D_FILE_OFFSET_BITS=64 \
|
|
|
4503f6 |
+CFLAGS = $(RPMCFLAGS) $(GCCWARN) -Wno-sign-compare -D_FILE_OFFSET_BITS=64 \
|
|
|
4503f6 |
$(OPTFLAGS) $(INCLUDES)
|
|
|
4503f6 |
-LDFLAGS =
|
|
|
4503f6 |
+LDFLAGS = $(RPMLDFLAGS)
|
|
|
4503f6 |
|
|
|
4503f6 |
SRCS = main.c \
|
|
|
4503f6 |
mountinfo.c \
|
|
|
4503f6 |
diff --git a/linux/Makefile b/linux/Makefile
|
|
|
1603ed |
index 5a49d813..9fed68d0 100644
|
|
|
4503f6 |
--- a/linux/Makefile
|
|
|
4503f6 |
+++ b/linux/Makefile
|
|
|
4503f6 |
@@ -18,8 +18,8 @@ include $(MAKEDIR)/syslinux.mk
|
|
|
4503f6 |
|
|
|
4503f6 |
OPTFLAGS = -g -Os
|
|
|
4503f6 |
INCLUDES = -I$(SRC) -I$(objdir) -I$(SRC)/../libinstaller
|
|
|
4503f6 |
-CFLAGS = $(GCCWARN) -D_FILE_OFFSET_BITS=64 $(OPTFLAGS) $(INCLUDES)
|
|
|
4503f6 |
-LDFLAGS =
|
|
|
4503f6 |
+CFLAGS = $(RPMCFLAGS) $(GCCWARN) -D_FILE_OFFSET_BITS=64 $(OPTFLAGS) $(INCLUDES)
|
|
|
4503f6 |
+LDFLAGS = $(RPMLDFLAGS)
|
|
|
4503f6 |
|
|
|
4503f6 |
SRCS = syslinux.c \
|
|
|
4503f6 |
../libinstaller/syslxopt.c \
|
|
|
4503f6 |
diff --git a/mtools/Makefile b/mtools/Makefile
|
|
|
1603ed |
index 632b185b..b6e5ebdb 100755
|
|
|
4503f6 |
--- a/mtools/Makefile
|
|
|
4503f6 |
+++ b/mtools/Makefile
|
|
|
4503f6 |
@@ -2,8 +2,8 @@ include $(MAKEDIR)/syslinux.mk
|
|
|
4503f6 |
|
|
|
4503f6 |
OPTFLAGS = -g -Os
|
|
|
4503f6 |
INCLUDES = -I$(SRC) -I$(objdir) -I$(SRC)/../libfat -I$(SRC)/../libinstaller
|
|
|
4503f6 |
-CFLAGS = $(GCCWARN) -D_FILE_OFFSET_BITS=64 $(OPTFLAGS) $(INCLUDES)
|
|
|
4503f6 |
-LDFLAGS =
|
|
|
4503f6 |
+CFLAGS = $(RPMCFLAGS) $(GCCWARN) -D_FILE_OFFSET_BITS=64 $(OPTFLAGS) $(INCLUDES)
|
|
|
4503f6 |
+LDFLAGS = $(RPMLDFLAGS)
|
|
|
4503f6 |
|
|
|
4503f6 |
SRCS = syslinux.c \
|
|
|
4503f6 |
../libinstaller/fs.c \
|
|
|
4503f6 |
diff --git a/utils/Makefile b/utils/Makefile
|
|
|
1603ed |
index dfe62590..b4962353 100644
|
|
|
4503f6 |
--- a/utils/Makefile
|
|
|
4503f6 |
+++ b/utils/Makefile
|
|
|
4503f6 |
@@ -17,8 +17,8 @@
|
|
|
4503f6 |
VPATH = $(SRC)
|
|
|
4503f6 |
include $(MAKEDIR)/syslinux.mk
|
|
|
4503f6 |
|
|
|
4503f6 |
-CFLAGS = $(GCCWARN) -Os -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 -I$(SRC)
|
|
|
4503f6 |
-LDFLAGS = -O2
|
|
|
4503f6 |
+CFLAGS = $(RPMCFLAGS) $(GCCWARN) -Os -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 -I$(SRC)
|
|
|
4503f6 |
+LDFLAGS = $(RPMLDFLAGS) -O2
|
|
|
4503f6 |
|
|
|
4503f6 |
C_TARGETS = isohybrid gethostip memdiskfind
|
|
|
4503f6 |
SCRIPT_TARGETS = mkdiskimage
|