Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ioc: configure static link directly on CONFIG_SITE. #65

Merged
merged 1 commit into from
Jun 24, 2024
Merged

Conversation

henriquesimoes
Copy link
Collaborator

Modern EPICS templates defines an optional include to a .local version of the configuration files. However, it is not guaranteed that this haven't been removed in the IOC, or that another template was used, which does not contain this logic. In such situations, compiling will succeed if we place STATIC_BUILD in the local file, but the IOC won't be statically linked, as the configuration won't ever be loaded.

Use CONFIG_SITE directly to avoid mistakenly compiling an application with dynamic linking when the used target is static-link and the template does not include local settings. This also lowers the knowledge required about the EPICS build system to successfully build the IOCs.

Note that appending to the end of CONFIG_SITE will correctly override any configuration in CONFIG_SITE.local if there is any.

Modern EPICS templates defines an optional include to a `.local` version
of the configuration files. However, it is not guaranteed that this
haven't been removed in the IOC, or that another template was used,
which does not contain this logic. In such situations, compiling will
succeed if we place STATIC_BUILD in the local file, but the IOC won't be
statically linked, as the configuration won't ever be loaded.

Use CONFIG_SITE directly to avoid mistakenly compiling an application
with dynamic linking when the used target is `static-link` and the
template does not include local settings. This also lowers the knowledge
required about the EPICS build system to successfully build the IOCs.

Note that appending to the end of CONFIG_SITE will correctly override
any configuration in CONFIG_SITE.local if there is any.
@ericonr ericonr merged commit 03154b3 into main Jun 24, 2024
2 checks passed
@ericonr ericonr deleted the config-site branch June 24, 2024 14:00
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.

2 participants