Skip to contentSkip to conversation

package/mesa3d: remove unnecessary passing of CFLAGS

PATCH In review Giulio Benetti 2 participants 3 messages Oct 4, 2021 – Oct 9, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/mesa3d: remove unnecessary passing of CFLAGS

This package uses meson-package infrastracture, so we don't need to explicitly pass its additional CFLAGS to some variable. The only thing we need to pass them is to use MESA3D_CFLAGS, because in package/pkg-meson.mk we have:
$(2)_CFLAGS ?= $$(TARGET_CFLAGS)
that makes the work automatically, where $(2) is exactly the package name, though $(2)_CFLAGS expands to MESA3D_CFLAGS.
So let's remove the MESA3D_CONF_OPTS += -DCMAKE_C_FLAGS="$(MESA3D_CFLAGS)" line that has been added by mistake.

Note: this doesn't fix any bug, but remove an unnecessary and ambiguos line

---
 package/mesa3d/mesa3d.mk | 2 --
 1 file changed, 2 deletions(-)
package/mesa3d/mesa3d.mk +0 -2
index f1862aed69..dc63d8c9f4 100644
@@ -266,6 +266,4 @@ ifeq ($(BR2_m68k),y)
 MESA3D_CFLAGS += -mlong-jump-table-offsets
 endif
 
-MESA3D_CONF_OPTS += -DCMAKE_C_FLAGS="$(MESA3D_CFLAGS)"
-
 $(eval $(meson-package))
Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 12 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Giulio" == Giulio Benetti <[email protected]> writes:

This package uses meson-package infrastracture, so we don't need to explicitly pass its additional CFLAGS to some variable. The only thing we need to pass them is to use MESA3D_CFLAGS, because in package/pkg-meson.mk we have:
$(2)_CFLAGS ?= $$(TARGET_CFLAGS)
that makes the work automatically, where $(2) is exactly the package name, though $(2)_CFLAGS expands to MESA3D_CFLAGS.
So let's remove the MESA3D_CONF_OPTS += -DCMAKE_C_FLAGS="$(MESA3D_CFLAGS)" line that has been added by mistake.

Quoted 3 lines

Note: this doesn't fix any bug, but remove an unnecessary and ambiguos line

Committed, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw
In reply to Giulio Benetti
Quoted 12 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Giulio" == Giulio Benetti <[email protected]> writes:

This package uses meson-package infrastracture, so we don't need to explicitly pass its additional CFLAGS to some variable. The only thing we need to pass them is to use MESA3D_CFLAGS, because in package/pkg-meson.mk we have:
$(2)_CFLAGS ?= $$(TARGET_CFLAGS)
that makes the work automatically, where $(2) is exactly the package name, though $(2)_CFLAGS expands to MESA3D_CFLAGS.
So let's remove the MESA3D_CONF_OPTS += -DCMAKE_C_FLAGS="$(MESA3D_CFLAGS)" line that has been added by mistake.

Quoted 3 lines

Note: this doesn't fix any bug, but remove an unnecessary and ambiguos line

Committed to 2021.02.x, 2021.05.x and 2021.08.x, thanks (together with 'package/mesa3d: fix build on m68k').

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot