[aspect-devel] Error in moving temporary files during output
Wolfgang Bangerth
bangerth at math.tamu.edu
Thu Jan 16 08:55:10 PST 2014
On 01/16/2014 09:23 AM, Rene Gassmoeller wrote:
> Yes, that's it. Problem solved. Now the static linking goes smoothly (as
> long as deal.II, trilinos and p4est have been properly set up). The only
> thing needed to build Aspect statically now, is to add a "-static" Flag
> to CMAKE_EXE_LINKER_FLAGS. If nobody objects I will add a small
> subsection to the Installation part of the Manual explaining the static
> build (it just means changing a few flags, but to find the right places
> takes some time for a typical user like me).
I think a patch like the one below should have the desired effect with
-static. Can you see whether that works? If yes, feel free to check in.
Other than that, yes, any help with the manual is greatly appreciated!
Cheers
W.
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt (revision 2270)
+++ CMakeLists.txt (working copy)
@@ -60,6 +60,8 @@
SET_PROPERTY(SOURCE ${_source_file}
APPEND PROPERTY COMPILE_DEFINITIONS ASPECT_USE_SHARED_LIBS=0)
ENDFOREACH()
+ SET_PROPERTY(TARGET aspect
+ APPEND PROPERTY LINK_FLAGS "-static")
ELSE()
MESSAGE(STATUS "Enabling dynamic loading of plugins from the input
file")
FOREACH(_source_file ${TARGET_SRC})
--
------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth at math.tamu.edu
www: http://www.math.tamu.edu/~bangerth/
More information about the Aspect-devel
mailing list