Skip to content

autotools: use AM_CFLAGS - #1378

Closed
vszakats wants to merge 1 commit into
libssh2:masterfrom
vszakats:am_cflags
Closed

vszakats wants to merge 1 commit into
libssh2:masterfrom
vszakats:am_cflags

Conversation

@vszakats

@vszakats vszakats commented Apr 26, 2024 •

Copy link
Copy Markdown
Member

Use AM_CFLAGS to pass custom, per-target C flags. This replaces using
CFLAGS which triggered this warning when running autoreconf -fi:

tests/Makefile.am:8: warning: 'CFLAGS' is a user variable, you should not override it;
tests/Makefile.am:8: use 'AM_CFLAGS' instead

(Only for tests, even though example and src also used this
method. The warning is also missing from curl, that also uses
CFLAGS.)

Follow-up to 3ec53f3 #1286
Closes #1378

Use `AM_CFLAGS` to pass custom, per-target C flags. This replaces using
`CFLAGS` which triggered this warning when running `autoreconf -fi`:
```
tests/Makefile.am:8: warning: 'CFLAGS' is a user variable, you should not override it;
tests/Makefile.am:8: use 'AM_CFLAGS' instead
```
(Only for `tests`, even though `example` and `src` also used this
method. The warning is also missing from curl, that also uses
`CFLAGS`.)

Follow-up to 3ec53f3 libssh2#1286
Closes #xxxx
@vszakats vszakats added the build label Apr 26, 2024
@vszakats vszakats changed the title autotools: prefer AM_CFLAGS autotools: use AM_CFLAGS Apr 26, 2024
@vszakats vszakats closed this in 6556bfb Apr 26, 2024
@vszakats
vszakats deleted the am_cflags branch April 26, 2024 20:59
agreppin pushed a commit to agreppin/libssh2 that referenced this pull request Jul 14, 2024
Use `AM_CFLAGS` to pass custom, per-target C flags. This replaces using
`CFLAGS` which triggered this warning when running `autoreconf -fi`:
```
tests/Makefile.am:8: warning: 'CFLAGS' is a user variable, you should not override it;
tests/Makefile.am:8: use 'AM_CFLAGS' instead
```
(Only for `tests`, even though `example` and `src` also used this
method. The warning is also missing from curl, that also uses
`CFLAGS`.)

Follow-up to 3ec53f3 libssh2#1286
Closes libssh2#1378
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant