Skip to content

Instantly share code, notes, and snippets.

@2bits
Created September 25, 2012 22:26
Show Gist options
  • Select an option

  • Save 2bits/3784836 to your computer and use it in GitHub Desktop.

Select an option

Save 2bits/3784836 to your computer and use it in GitHub Desktop.
valgrind-3.8.1 patch for Homebrew & XCode-only
--- a/coregrind/Makefile.in
+++ b/coregrind/Makefile.in
@@ -82,10 +82,10 @@ bin_PROGRAMS = valgrind$(EXEEXT) vgdb$(EXEEXT)
@VGCONF_OS_IS_DARWIN_TRUE@ m_mach/vm_map.h
@VGCONF_OS_IS_DARWIN_TRUE@am__append_10 = \
-@VGCONF_OS_IS_DARWIN_TRUE@ /usr/include/mach/mach_vm.defs \
-@VGCONF_OS_IS_DARWIN_TRUE@ /usr/include/mach/task.defs \
-@VGCONF_OS_IS_DARWIN_TRUE@ /usr/include/mach/thread_act.defs \
-@VGCONF_OS_IS_DARWIN_TRUE@ /usr/include/mach/vm_map.defs
+@VGCONF_OS_IS_DARWIN_TRUE@ $(HOMEBREW_SDKROOT)/usr/include/mach/mach_vm.defs \
+@VGCONF_OS_IS_DARWIN_TRUE@ $(HOMEBREW_SDKROOT)/usr/include/mach/task.defs \
+@VGCONF_OS_IS_DARWIN_TRUE@ $(HOMEBREW_SDKROOT)/usr/include/mach/thread_act.defs \
+@VGCONF_OS_IS_DARWIN_TRUE@ $(HOMEBREW_SDKROOT)/usr/include/mach/vm_map.defs
@VGCONF_HAVE_PLATFORM_SEC_TRUE@am__append_11 = libcoregrind-@VGCONF_ARCH_SEC@-@[email protected]
@ENABLE_LINUX_TICKET_LOCK_PRIMARY_TRUE@am__append_12 = \
--- a/coregrind/link_tool_exe_darwin.in
+++ b/coregrind/link_tool_exe_darwin.in
@@ -138,7 +138,7 @@ die "Can't find '-arch archstr' in command line"
# build the command line
-my $cmd = "/usr/bin/ld";
+my $cmd = "ld";
$cmd = "$cmd -static";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment