Skip to content

Build system: use OC_CFLAGS and CFLAGS even during the link stage#9837

Merged
dra27 merged 1 commit intoocaml:trunkfrom
shindere:honour-cflags-2
Aug 11, 2020
Merged

Build system: use OC_CFLAGS and CFLAGS even during the link stage#9837
dra27 merged 1 commit intoocaml:trunkfrom
shindere:honour-cflags-2

Conversation

@shindere
Copy link
Copy Markdown
Contributor

This is a follow-up to PR #9824.

Actually, the CFLAGS-related variables need to be passed to the C
compiler also during link-time (a flog like -g for instance).

This PR fixes this and thus makes Inria's extra-checks CI job work again
(it was broken because building with sanitizers was failing).

@shindere
Copy link
Copy Markdown
Contributor Author

shindere commented Aug 10, 2020 via email

@dra27 dra27 merged commit 342ef2e into ocaml:trunk Aug 11, 2020
@shindere
Copy link
Copy Markdown
Contributor Author

shindere commented Aug 11, 2020 via email

@shindere shindere deleted the honour-cflags-2 branch August 11, 2020 08:03
gasche added a commit to gasche/ocaml that referenced this pull request Dec 18, 2020
OC_LDFLAGS is for options specific to linking OCaml programs, LDFLAGS
are user-chosen flags that should be included in any call to the
system linker.

This is intended to fix ocaml#9191.

The logic followed in this PR is similar to the treatment of CFLAGS in
the build system, which comes from ocaml#9837.

Passing LDFLAGS to flexlink is not supported. It is a pain to do
correctly, and we haven't got requests from Windows users yet, only
from users of unix variants.
gasche added a commit to gasche/ocaml that referenced this pull request Dec 19, 2020
OC_LDFLAGS is for options specific to linking OCaml programs, LDFLAGS
are user-chosen flags that should be included in any call to the
system linker.

This is intended to fix ocaml#9191.

The logic followed in this PR is similar to the treatment of CFLAGS in
the build system, which comes from ocaml#9837.

Passing LDFLAGS to flexlink is not supported. It is a pain to do
correctly, and we haven't got requests from Windows users yet, only
from users of unix variants.
gasche added a commit to gasche/ocaml that referenced this pull request Dec 21, 2020
OC_LDFLAGS is for options specific to linking OCaml programs, LDFLAGS
are user-chosen flags that should be included in any call to the
system linker.

This is intended to fix ocaml#9191.

The logic followed in this PR is similar to the treatment of CFLAGS in
the build system, which comes from ocaml#9837.

Passing LDFLAGS to flexlink is not supported. It is a pain to do
correctly, and we haven't got requests from Windows users yet, only
from users of unix variants.
gasche added a commit to gasche/ocaml that referenced this pull request Dec 21, 2020
OC_LDFLAGS is for options specific to linking OCaml programs, LDFLAGS
are user-chosen flags that should be included in any call to the
system linker.

This is intended to fix ocaml#9191.

The logic followed in this PR is similar to the treatment of CFLAGS in
the build system, which comes from ocaml#9837.

Passing LDFLAGS to flexlink is not supported. It is a pain to do
correctly, and we haven't got requests from Windows users yet, only
from users of unix variants.
dbuenzli pushed a commit to dbuenzli/ocaml that referenced this pull request Mar 25, 2021
OC_LDFLAGS is for options specific to linking OCaml programs, LDFLAGS
are user-chosen flags that should be included in any call to the
system linker.

This is intended to fix ocaml#9191.

The logic followed in this PR is similar to the treatment of CFLAGS in
the build system, which comes from ocaml#9837.

Passing LDFLAGS to flexlink is not supported. It is a pain to do
correctly, and we haven't got requests from Windows users yet, only
from users of unix variants.
mroch pushed a commit to mroch/ocaml that referenced this pull request Aug 31, 2021
OC_LDFLAGS is for options specific to linking OCaml programs, LDFLAGS
are user-chosen flags that should be included in any call to the
system linker.

This is intended to fix ocaml#9191.

The logic followed in this PR is similar to the treatment of CFLAGS in
the build system, which comes from ocaml#9837.

Passing LDFLAGS to flexlink is not supported. It is a pain to do
correctly, and we haven't got requests from Windows users yet, only
from users of unix variants.
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