summaryrefslogtreecommitdiff
path: root/math/librsb/files/patch-rsb__init.c
diff options
context:
space:
mode:
authorStephen Montgomery-Smith <stephen@FreeBSD.org>2015-06-02 23:05:35 +0000
committerStephen Montgomery-Smith <stephen@FreeBSD.org>2015-06-02 23:05:35 +0000
commit0a5c2e68be6e677e746f9255850ba720b7c20983 (patch)
treeb4a07d98107dbf472674b8907c9d94b9113ec42b /math/librsb/files/patch-rsb__init.c
parentcad/ghdl: Support DragonFly - llvm back now jobs safe (diff)
- Make user of port understand information about memory heirarchy needs to
be provided. - Bump portrevision.
Diffstat (limited to 'math/librsb/files/patch-rsb__init.c')
-rw-r--r--math/librsb/files/patch-rsb__init.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/math/librsb/files/patch-rsb__init.c b/math/librsb/files/patch-rsb__init.c
new file mode 100644
index 000000000000..b2679b31883e
--- /dev/null
+++ b/math/librsb/files/patch-rsb__init.c
@@ -0,0 +1,21 @@
+--- rsb_init.c.orig 2015-05-01 21:04:42 UTC
++++ rsb_init.c
+@@ -50,13 +50,15 @@ const rsb_char_t * rsb__init_get_mem_hie
+ if((usmhi = getenv("RSB_USER_SET_MEM_HIERARCHY_INFO"))!=NULL && *usmhi)
+ goto done;
+ #endif /* RSB_HAVE_GETENV */
++#ifdef RSB_DETECTED_MEM_HIERARCHY_INFO
++ if(verbose) RSB_INFO("Checking hardcoded RSB_DETECTED_MEM_HIERARCHY_INFO symbol\n");
++ usmhi = RSB_DETECTED_MEM_HIERARCHY_INFO;
++ if (*usmhi)
++ goto done;
+ #ifdef RSB_USER_SET_MEM_HIERARCHY_INFO
+ if(verbose) RSB_INFO("Checking hardcoded RSB_USER_SET_MEM_HIERARCHY_INFO symbol\n");
+ usmhi = RSB_USER_SET_MEM_HIERARCHY_INFO;
+ #endif /* RSB_USER_SET_MEM_HIERARCHY_INFO */
+-#ifdef RSB_DETECTED_MEM_HIERARCHY_INFO
+- if(verbose) RSB_INFO("Checking hardcoded RSB_DETECTED_MEM_HIERARCHY_INFO symbol\n");
+- usmhi = RSB_DETECTED_MEM_HIERARCHY_INFO;
+ #endif /* RSB_USER_SET_MEM_HIERARCHY_INFO */
+ done:
+ if(verbose) RSB_INFO("Available memory hierarchy info string: \"%s\"\n",usmhi);