Disable link-time, whole program optimization
When using LTO, the linker calls back to the compiler to figure out where a certain symbol is defined. However, in many versions there is apparently a bug that is triggered if a template in inlined in both a used library and in the main program, but with different versions of the compiler. The Boost exception class is particular prone for this. Thus, we disable the -lto from the development builds by default; if anyone wants to test of the behaviour of their own compiler, they must now explicitly turn on this flag.
This commit is contained in:
@@ -59,7 +59,7 @@ This package contains the applications for opm-core
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
cmake28 -DBUILD_SHARED_LIBS=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_INSTALL_DOCDIR=share/doc/%{name}-%{version}
|
||||
cmake28 -DBUILD_SHARED_LIBS=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_INSTALL_DOCDIR=share/doc/%{name}-%{version} -DWHOLE_PROG_OPTIM=ON
|
||||
make
|
||||
|
||||
%install
|
||||
|
||||
Reference in New Issue
Block a user