Skip to content

Fix compilation bugs - #15

Open
AlecThomson wants to merge 1 commit into
csiro:masterfrom
AlecThomson:fix-compile
Open

Fix compilation bugs#15
AlecThomson wants to merge 1 commit into
csiro:masterfrom
AlecThomson:fix-compile

Conversation

@AlecThomson

Copy link
Copy Markdown

Hi there,

I hit a couple of compilation/build bugs with -DLARGEN=ON and CMake < 3.24 - this should fix both:

  • pgplot/CMakeLists.txt: DOWNLOAD_EXTRACT_TIMESTAMP is only a recognized
    ExternalProject_Add keyword on CMake >= 3.24. On older CMake it was
    getting absorbed into PATCH_COMMAND, corrupting the patch invocation
    (patch: Can't open patch file TRUE). Now only passed when supported.

  • CMakeLists.txt: LARGEN's enlarged COMMON blocks overflow the default
    small memory model's 32-bit relocations at link time
    (relocation truncated to fit). Add -mcmodel=medium for C/Fortran
    when LARGEN is enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant