File opa-fm-use-RPM_OPT_FLAGS.patch of Package opa-fm
diff --git Esm/Makerules.project Esm/Makerules.project
index e4a8887..f3ca78e 100755
--- Esm/Makerules.project
+++ Esm/Makerules.project
@@ -125,6 +125,7 @@ BSCPROJ =
# strict-prototypes - treat extern int foo() as function with no args
CPROJ = -DPRODUCT=$(PRODUCT) -DPRODUCT_$(PRODUCT) -DMODULEVERSION=$(MODULEVERSION)
+CPROJ += $(RPM_OPT_FLAGS)
ifeq ($(IB_STACK),OPENIB)
CPROJ += -DIB_STACK_OPENIB
else
diff --git MakeTools/patch_version/Makefile MakeTools/patch_version/Makefile
index de6338c..2b7abde 100755
--- MakeTools/patch_version/Makefile
+++ MakeTools/patch_version/Makefile
@@ -126,7 +126,7 @@ include $(TL_DIR)/$(PROJ_FILE_DIR)/Makerules.project
# (Windows Only)
#=============================================================================#
# override use of patch_engineer_version to avoid error
-CPROJ=
+CPROJ= $(RPM_OPT_FLAGS)
#=============================================================================#
# Rules: