Skip to content

Instantly share code, notes, and snippets.

@bronson
Created November 11, 2011 20:55
Show Gist options
  • Select an option

  • Save bronson/1359217 to your computer and use it in GitHub Desktop.

Select an option

Save bronson/1359217 to your computer and use it in GitHub Desktop.
Compiling ree on Fedora 16
# How to compile ree-1.8.7-2011.03 on Fedora 16:
rvm install ree --force --patch tcmalloc.patch --patch ~/.rvm/patches/ruby/1.8.7/stdout-rouge-fix.patch
--- a/distro/google-perftools-1.7/src/tcmalloc.cc 2011-02-24 02:09:12.000000000 -0800
+++ b/distro/google-perftools-1.7/src/tcmalloc.cc 2011-11-11 12:46:13.704738476 -0800
@@ -1669,5 +1669,5 @@
MallocHook::InvokeNewHook(result, size);
return result;
}
-void *(*__memalign_hook)(size_t, size_t, const void *) = MemalignOverride;
+void *(* volatile __memalign_hook)(size_t, size_t, const void *) = MemalignOverride;
#endif // #ifndef TCMALLOC_FOR_DEBUGALLOCATION
@bronson

bronson commented Nov 11, 2011

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment