patch for make check to deal with -fvtable-thunks
Jeffrey A Law
law@cygnus.com
Mon Sep 29 00:38:00 GMT 1997
In message < Pine.OSF.3.96.970912011105.5070A-100000@hepunix1.physics.yale.edu >you write:
> Problem: If libstdc++ is compiled with -fvtable-thunks, 'make check'
> will fail for those programs using virtual functions.
Well, for targets that default to -ftable-thunks the compiler
should automatically do the right thing, so there's nothing
to do for that case.
If you choose the non-default way to make the libraries (ie
-fvtable-thunks on a system that doesn't use thunks by default)
then it seems perfectly reasonable to have to specify -ftable-thunks
explicitly when doing the make check.
make -k check RUNTESTFLAGS="CFLAGS_FOR_TARGET=-fvtable-thunks"
Or something close to that ought to work.
> ! CFLAGS_FOR_TARGET=$(findstring -fvtable-thunks, $(CFLAGS))
For future reference -- you can't use GNU make features like
"findstring" in Makefiles. It's wrong since the Makefiles have
to work for more than just GNU make.
jeff
More information about the Gcc
mailing list