Message ID | CAMe9rOq=nxG6GC5zyrYkv5kTvD1iG7htjNs3WREbcpxvt5hpLg@mail.gmail.com |
---|---|
State | New |
Headers | show |
Il 12/12/2012 15:41, H.J. Lu ha scritto: > MAKEOVERRIDES is used for multilib. I got > > /bin/sh ../libtool --tag=CXX --mode=compile -D_GNU_SOURCE -D_DEBUG > -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS > -DASAN_HAS_EXCEPTIONS=1 -DASAN_FLEXIBLE_MAPPING_AND_OFFSET=0 > -DASAN_NEEDS_SEGV=1 -I. > -I/export/gnu/import/git/gcc/libsanitizer/asan -I > /export/gnu/import/git/gcc/libsanitizer/include -I > /export/gnu/import/git/gcc/libsanitizer -Wall -W > -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -fPIC > -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables > -fvisibility=hidden -Wno-variadic-macros -Wno-c99-extensions > -I../../libstdc++-v3/include > -I../../libstdc++-v3/include/x86_64-unknown-linux-gnu > -I/export/gnu/import/git/gcc/libsanitizer/../libstdc++-v3/libsupc++ -g > -O2 -D_GNU_SOURCE -m32 -MT asan_malloc_linux.lo -MD -MP -MF > .deps/asan_malloc_linux.Tpo -c -o asan_malloc_linux.lo > /export/gnu/import/git/gcc/libsanitizer/asan/asan_malloc_linux.cc > libtool: compile: unrecognized option `-D_GNU_SOURCE' > libtool: compile: Try `libtool --help' for more information. > make[8]: *** [asan_allocator.lo] Error 1 > make[8]: *** Waiting for unfinished jobs.... > libtool: compile: unrecognized option `-D_GNU_SOURCE' > libtool: compile: Try `libtool --help' for more information > > I checked in this patch to restore MAKEOVERRIDES. This will break "make CFLAGS=-g". Please revert the AM_MAKEFLAGS change fully. However, your patch that removed AM_MAKEFLAGS similarly broke "make CC=foo". While it is much less useful, this nevertheless may be the sign of a bigger problem. Why did you need to remove CC/CXX from AM_MAKEFLAGS in the first place? Paolo
Index: ChangeLog =================================================================== --- ChangeLog (revision 194449) +++ ChangeLog (working copy) @@ -1,5 +1,18 @@ 2012-12-12 H.J. Lu <hongjiu.lu@intel.com> + * Makefile.am (MAKEOVERRIDES): Restored. + * asan/Makefile.am: Likewise. + * interception/Makefile.am: Likewise. + * sanitizer_common/Makefile.am: Likewise. + * tsan/Makefile.am: Likewise. + * Makefile.in: Regenerated. + * asan/Makefile.in: Likewise. + * interception/Makefile.in: Likewise. + * sanitizer_common/Makefile.in: Likewise. + * tsan/Makefile.in: Likewise. + +2012-12-12 H.J. Lu <hongjiu.lu@intel.com> + * asan/Makefile.am (libasan_la_LIBADD): Use $(LIBSTDCXX_RAW_CXX_LDLAGS). * tsan/Makefile.am (libtsan_la_LIBADD): Likewise. * Makefile.in: Regenerated. Index: Makefile.am =================================================================== --- Makefile.am (revision 194449) +++ Makefile.am (working copy) @@ -10,5 +10,7 @@ if USING_MAC_INTERPOSE SUBDIRS = sanitizer_common asan endif +MAKEOVERRIDES= + ## ################################################################ Index: asan/Makefile.am =================================================================== --- asan/Makefile.am (revision 194449) +++ asan/Makefile.am (working copy) @@ -44,5 +44,7 @@ libasan_la_LIBADD += $(LIBSTDCXX_RAW_CXX libasan_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` -lpthread -ldl +MAKEOVERRIDES= + ## ################################################################ Index: interception/Makefile.am =================================================================== --- interception/Makefile.am (revision 194449) +++ interception/Makefile.am (working copy) @@ -17,5 +17,7 @@ interception_files = \ libinterception_la_SOURCES = $(interception_files) +MAKEOVERRIDES= + ## ################################################################ Index: sanitizer_common/Makefile.am =================================================================== --- sanitizer_common/Makefile.am (revision 194449) +++ sanitizer_common/Makefile.am (working copy) @@ -29,5 +29,7 @@ sanitizer_common_files = \ libsanitizer_common_la_SOURCES = $(sanitizer_common_files) +MAKEOVERRIDES= + ## ################################################################ Index: tsan/Makefile.am =================================================================== --- tsan/Makefile.am (revision 194449) +++ tsan/Makefile.am (working copy) @@ -37,5 +37,7 @@ libtsan_la_SOURCES = $(tsan_files) libtsan_la_LIBADD = $(top_builddir)/sanitizer_common/libsanitizer_common.la $(top_builddir)/interception/libinterception.la $(LIBSTDCXX_RAW_CXX_LDLAGS) libtsan_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` -lpthread -ldl