metis/metis-makefile-c-directives.patch
Atri Bhattacharya 83a01e3c93 Accepting request 644820 from home:eeich:factory_staging
- General spec file clean up.
- Touch-up to the HPC build.

- Implemented suse-hpc packaging
- Added metis-makefile-c-directives.patch
  - Provides cflags option to help provide metis native build process

OBS-URL: https://build.opensuse.org/request/show/644820
OBS-URL: https://build.opensuse.org/package/show/science/metis?expand=0&rev=5
2018-11-22 15:13:58 +00:00

16 lines
410 B
Diff

Index: metis-5.1.0/Makefile
===================================================================
--- metis-5.1.0.orig/Makefile
+++ metis-5.1.0/Makefile
@@ -51,6 +51,10 @@ endif
ifneq ($(cc), not-set)
CONFIG_FLAGS += -DCMAKE_C_COMPILER=$(cc)
endif
+ifneq ($(cflags), not-set)
+ CONFIG_FLAGS += -DCMAKE_C_FLAGS="$(cflags)" -DCMAKE_CXX_FLAGS="$(cflags)"
+endif
+
VERNUM=5.1.0
PKGNAME=metis-$(VERNUM)