fails to build shared lib dunegrid.so with alberta
When trying to build dunegrid
with BUILD_SHARED_LIBS set, I get a linker error due to multiply defined symbols:
[100%] Linking CXX shared library libdunegrid.so
/usr/bin/ld: ../dune/grid/albertagrid/CMakeFiles/albertagrid2d.dir/indexsets.cc.o:(.bss+0x0): multiple definition of `Dune::Alberta::currentIndexStack'; ../dune/grid/albertagrid/CMakeFiles/albertagrid1d.dir/indexsets.cc.o:(.bss+0x0): first defined here
/usr/bin/ld: ../dune/grid/albertagrid/CMakeFiles/albertagrid3d.dir/indexsets.cc.o:(.bss+0x0): multiple definition of `Dune::Alberta::currentIndexStack'; ../dune/grid/albertagrid/CMakeFiles/albertagrid1d.dir/indexsets.cc.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
gmake[2]: *** [lib/CMakeFiles/dunegrid.dir/build.make:393: lib/libdunegrid.so] Fehler 1
gmake[1]: *** [CMakeFiles/Makefile2:3726: lib/CMakeFiles/dunegrid.dir/all] Fehler 2
gmake: *** [Makefile:160: all] Fehler 2