@@ -12,6 +12,7 @@ $FORD_FILE = ford.md
1212$STATIC_LIB = libjsonfortran.a
1313$SHARED_LIB = libjsonfortran.so
1414$OPTIMIZE = -O2
15+ $LFLAGS_GNU = -ftrampoline-impl=heap
1516$CSTATIC_GNU = -c -fbacktrace -Wall -Wextra -Wno-maybe-uninitialized -Wno-unused-function -pedantic
1617$DEBUG_GNU = -O0 -g3 -Warray-bounds -Wcharacter-truncation -Wline-truncation -Wimplicit-interface -Wimplicit-procedure -Wunderflow -fcheck=all -fmodule-private -ffree-line-length-132 -fimplicit-none -fbacktrace -fdump-core -finit-real=nan -fall-intrinsics
1718$CSTATIC_INT = -c -std18
@@ -69,12 +70,14 @@ exclude_dirs = $EXCLUDE_DIRS
6970description = Build library with GNU gfortran by optimized-static flags
7071compiler = gnu
7172cflags = $CSTATIC_GNU $OPTIMIZE
73+ lflags = $LFLAGS_GNU
7274template = template-static
7375
7476[static-gnu-debug]
7577description = Build library with GNU gfortran by debug-static flags
7678compiler = gnu
7779cflags = $CSTATIC_GNU $DEBUG_GNU
80+ lflags = $LFLAGS_GNU
7881template = template-static
7982
8083[static-intel]
@@ -93,12 +96,14 @@ template = template-static
9396description = Build library with GNU gfortran by optimized-shared flags
9497compiler = gnu
9598cflags = $CSTATIC_GNU $OPTIMIZE
99+ lflags = $LFLAGS_GNU
96100template = template-shared
97101
98102[shared-gnu-debug]
99103description = Build library with GNU gfortran by debug-shared flags
100104compiler = gnu
101105cflags = $CSTATIC_GNU $DEBUG_GNU
106+ lflags = $LFLAGS_GNU
102107template = template-shared
103108
104109[shared-intel]
@@ -118,12 +123,14 @@ template = template-shared
118123description = Build all tests with GNU gfortran by optimized-static flags
119124compiler = gnu
120125cflags = $CSTATIC_GNU $OPTIMIZE
126+ lflags = $LFLAGS_GNU
121127template = template-tests
122128
123129[tests-gnu-debug]
124130description = Build all tests with GNU gfortran by debug-static flags
125131compiler = gnu
126132cflags = $CSTATIC_GNU $DEBUG_GNU
133+ lflags = $LFLAGS_GNU
127134template = template-tests
128135
129136[tests-intel]
0 commit comments