fredericgermain / valgrind

svn2git clone of SVN repo svn://svn.valgrind.org/valgrind, with patches for macOS
GNU General Public License v2.0
17 stars 17 forks source link

Fixes to avoid error in clang compiler #3

Closed benson-basis closed 10 years ago

benson-basis commented 10 years ago

This removes an option that caused the clang-based gcc to refuse to compile.

vvhh2002 commented 10 years ago

gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../VEX/pub -DVGA_amd64=1 -DVGO_darwin=1 -DVGP_amd64_darwin=1 -DVGPV_amd64_darwin_vanilla=1 -I../coregrind -DVG_LIBDIR="\"/usr/local/lib/valgrind"\" -DVG_PLATFORM="\"amd64-darwin\"" -arch x86_64 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -fno-builtin -mmacosx-version-min=10.5 -fno-stack-protector -dynamic -O -g -fno-omit-frame-pointer -fno-strict-aliasing -mno-dynamic-no-pic -fpic -fPIC -fno-builtin -Wno-long-long -Wwrite-strings -fno-stack-protector -MT m_replacemalloc/libreplacemalloc_toolpreload_amd64_darwin_a-vg_replace_malloc.o -MD -MP -MF m_replacemalloc/.deps/libreplacemalloc_toolpreload_amd64_darwin_a-vg_replace_malloc.Tpo -c -o m_replacemalloc/libreplacemalloc_toolpreload_amd64_darwin_a-vg_replace_malloc.o test -f 'm_replacemalloc/vg_replace_malloc.c' || echo './'m_replacemalloc/vg_replace_malloc.c clang: error: unknown argument: '-mno-dynamic-no-pic' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future make[3]: * [m_replacemalloc/libreplacemalloc_toolpreload_amd64_darwin_a-vg_replace_malloc.o] Error 1 make[2]: * [all] Error 2 make[1]: * [all-recursive] Error 1 make: * [all] Error 2

fredericgermain commented 10 years ago

Thanks, merged ! No idea what's this option was supposed to do...