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

Makefile: fix LDFLAGS order; and don't force -Werror #322

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

emanuele6
Copy link
Collaborator

Fix order of LDFLAGS, as mentioned in #158, this is necessary for e.g. -Wl,--as-needed to work correctly.

-Werror is now only added in non-NDEBUG builds.

Ref: gentoo/gentoo#38168

Fix order of LDFLAGS, as mentioned in curl#158, this is necessary for e.g.
`-Wl,--as-needed` to work correctly.

-Werror is now only added in non-NDEBUG builds.

Ref: gentoo/gentoo#38168
emanuele6 added a commit to emanuele6/the-gentoo that referenced this pull request Aug 16, 2024
The old Makefile patch can no longer be applied, and is no longer
necessary since version 0.8; so I wrote a new patch that applies to 0.14
that is also applied to the 9999 version for now, and sent it upstream.

I also fixed the old patch that was incorrectly passing CPPFLAGS and
CFLAGS to the linker.

Additionally, I added an  export NDEBUG=1  command in src_compile:
without this, -g and -Werror are added after CFLAGS by the Makefile
possibly shadowing options like -ggdb3 that user might have set, or
causing a build to fail just because a warning was reported.

Bump copyright of touched ebuild files.

Ref: curl/trurl@75fec313d9
Ref: curl/trurl#322
Signed-off-by: Emanuele Torre <[email protected]>
emanuele6 added a commit to emanuele6/the-gentoo that referenced this pull request Aug 16, 2024
The old Makefile patch can no longer be applied, and is no longer
necessary since version 0.8; so I wrote a new patch that applies to 0.14
that is also applied to the 9999 version for now, and sent it upstream.

I also fixed the old patch that was incorrectly passing CPPFLAGS and
CFLAGS to the linker, and not passing -Wall to the compiler.

Additionally, I added an  export NDEBUG=1  command in src_compile:
without this, -g and -Werror are added after CFLAGS by the Makefile
possibly shadowing options like -ggdb3 that user might have set, or
causing a build to fail just because a warning was reported.

Bump copyright of touched ebuild files.

Ref: curl/trurl@75fec313d9
Ref: curl/trurl#322
Signed-off-by: Emanuele Torre <[email protected]>
emanuele6 added a commit to emanuele6/the-gentoo that referenced this pull request Aug 16, 2024
The old Makefile patch can no longer be applied, and is no longer
necessary since version 0.8; so I wrote a new patch that applies to 0.14
that is also applied to the 9999 version for now, and sent it upstream.

Additionally, I added an  export NDEBUG=1  command in src_compile:
without this, -g and -Werror are added after CFLAGS by the Makefile
possibly shadowing options like -ggdb3 that user might have set, or
causing a build to fail just because a warning was reported.

Bump copyright of touched ebuild files.

Ref: curl/trurl@75fec313d9
Ref: curl/trurl#322
Signed-off-by: Emanuele Torre <[email protected]>
emanuele6 added a commit to emanuele6/the-gentoo that referenced this pull request Aug 16, 2024
The old Makefile patch can no longer be applied; so I wrote a new patch
that applies to 0.14 that is also applied to the 9999 version for now,
and sent it upstream.

Additionally, I added an  export NDEBUG=1  command in src_compile:
without this, -g and -Werror are added after CFLAGS by the Makefile
possibly shadowing options like -ggdb3 that user might have set, or
causing a build to fail just because a warning was reported.

Bump copyright of touched ebuild files.

Ref: curl/trurl#322
Signed-off-by: Emanuele Torre <[email protected]>
emanuele6 added a commit to emanuele6/the-gentoo that referenced this pull request Aug 16, 2024
The old Makefile patch can no longer be applied; so I wrote a new patch
that applies to 0.14 that is also applied to the 9999 version for now,
and sent it upstream.

Additionally, I added an  export NDEBUG=1  command in src_compile:
without this, -g and -Werror are added after CFLAGS by the Makefile
possibly shadowing options like -ggdb3 that user might have set, or
causing a build to fail just because a warning was reported.

Bump copyright of touched ebuild files.

Ref: curl/trurl#322
Signed-off-by: Emanuele Torre <[email protected]>
gentoo-bot pushed a commit to gentoo/gentoo that referenced this pull request Aug 16, 2024
The old Makefile patch can no longer be applied; so I wrote a new patch
that applies to 0.14 that is also applied to the 9999 version for now,
and sent it upstream.

Additionally, I added an  export NDEBUG=1  command in src_compile:
without this, -g and -Werror are added after CFLAGS by the Makefile
possibly shadowing options like -ggdb3 that user might have set, or
causing a build to fail just because a warning was reported.

Bump copyright of touched ebuild files.

Ref: curl/trurl#322
Signed-off-by: Emanuele Torre <[email protected]>
Signed-off-by: Sam James <[email protected]>
@bagder bagder merged commit 5cb314b into curl:master Aug 16, 2024
10 checks passed
@emanuele6 emanuele6 deleted the fixmake branch August 16, 2024 12:13
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