Skip to content

Commit

Permalink
Fix build of static CP2K binary
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrack committed Jan 9, 2023
1 parent 0af815c commit 72f72f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions arch/Linux-gnu-aarch64-static.ssmp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# Usage: Source this arch file and then run make as instructed.
#
# Author: Matthias Krack (15.12.2022)
# Author: Matthias Krack (09.01.2023)
#
# \
if [[ "${0}" == "${BASH_SOURCE}" ]]; then \
Expand Down Expand Up @@ -140,7 +140,9 @@ endif
CFLAGS += $(DFLAGS) $(CFLAGS_DEBUG)

FCFLAGS := $(CFLAGS) $(FCFLAGS_DEBUG) $(WFLAGS)
FCFLAGS += -fallow-argument-mismatch
ifeq ($(shell [ $(shell gcc -dumpversion | cut -d. -f1) -gt 9 ] && echo yes), yes)
FCFLAGS += -fallow-argument-mismatch
endif
FCFLAGS += -fbacktrace
FCFLAGS += -ffree-form
FCFLAGS += -ffree-line-length-none
Expand All @@ -154,6 +156,6 @@ else
LDFLAGS += $(FCFLAGS) -static
endif

LIBS += -ldl -lstdc++
LIBS += -Wl,--whole-archive -lpthread -Wl,--no-whole-archive -ldl -lstdc++

# End
2 changes: 1 addition & 1 deletion arch/Linux-gnu-x86_64-static.ssmp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# Usage: Source this arch file and then run make as instructed.
#
# Author: Matthias Krack (15.12.2022)
# Author: Matthias Krack (09.01.2023)
#
# \
if [[ "${0}" == "${BASH_SOURCE}" ]]; then \
Expand Down

0 comments on commit 72f72f4

Please sign in to comment.