|
- Timestamp:
-
Jul 2, 2012, 4:29:58 PM (13 years ago)
- Author:
-
jweil
- Comment:
-
static linking is default now
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v10
|
v11
|
|
3 | 3 | Compiling GiBUU usually is as easy as typing '''make''' in the GiBUU base directory. However, a couple of options are available for special situations (see also [http://gibuu.physik.uni-giessen.de/Documentation/makefile_robodoc/masterindex.html Makefile Documentation]). |
4 | 4 | |
5 | | Before compiling, make sure that all [wiki:tools prerequisites] are fulfilled. |
| 5 | Before compiling, make sure that all [wiki:tools prerequisites] are fulfilled. Note that the whole compilation process is steared by GNU make. |
6 | 6 | |
7 | | Note that the whole compilation process is steared by GNU make. GiBUU is always compiled statically, so that we get a monolithic executable which does not depend on system libraries (with the exception of Mac OS X where static linking is not supported). |
8 | 7 | |
9 | 8 | == Choosing a Compiler == |
… |
… |
|
38 | 37 | Currently this only works with ifort & gfortran, and produces an executable which is suitable for profiling with gprof. |
39 | 38 | |
| 39 | |
40 | 40 | == Static vs. Dynamic Linking == |
41 | 41 | |
42 | | The GiBUU executable is usually linked statically, in order to be independent of the libraries present on a particular system (an exception is Mac OS, where static linking is not supported). Recently we added the possibility to switch to dynamic linking (e.g. for the case that static libraries are not available). This can be done via: |
| 42 | Up to release 1.4, the GiBUU executable was always linked statically. Starting with 1.5, dynamic linking is the default, but the old behavior can be recovered via: |
43 | 43 | |
44 | 44 | {{{ |
45 | | make STATIC=0 |
| 45 | make STATIC=1 |
46 | 46 | }}} |
47 | 47 | |
48 | | Unfortunately this option is not available in the 1.4.x release yet, but will be supported in a future release. |
49 | 48 | |
50 | 49 | == Floating Point Exceptions == |
… |
… |
|
69 | 68 | This can potentially be up to four times faster than the standard single-threaded make ("-j1"), since four files can be compiled in parallel. |
70 | 69 | |
| 70 | |
71 | 71 | == Rebuilding from scratch == |
72 | 72 | |
|