Skip to contentSkip to conversation

package/pcre: don't override PCRE_CONF_OPTS

PATCH Applied Fabrice Fontaine 2 participants 2 messages Feb 17, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/pcre: don't override PCRE_CONF_OPTS

PCRE_CONF_OPTS is wrongly overridden in a conditional since commit 9b28d48012c33b37d33101991fa042f9fc9d76eb

---
 package/pcre/pcre.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/pcre/pcre.mk +1 -1
index c85f6717db..59750c28e7 100644
@@ -18,7 +18,7 @@ HOST_PCRE_CONF_OPTS = --enable-unicode-properties
 
 ifneq ($(BR2_INSTALL_LIBSTDCPP),y)
 # pcre will use the host g++ if a cross version isn't available
-PCRE_CONF_OPTS = --disable-cpp
+PCRE_CONF_OPTS += --disable-cpp
 endif
 
 PCRE_CONF_OPTS += --enable-pcre8
Signature · 6 lines
2.34.1

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

Fabrice, All,

On 2022-02-17 22:44 +0100, Fabrice Fontaine spake thusly:

Quoted 4 lines

PCRE_CONF_OPTS is wrongly overridden in a conditional since commit 9b28d48012c33b37d33101991fa042f9fc9d76eb

Applied to master, alogn with your four following similar changes, thanks.

Note that some of them are not really overrides, as the variables are not previously set, but for consistency sake, and for robustness agaisnt future evolutions in those files, this is still better (and correct!) to use the append assignment in conditional blocks.

Thanks!

Regards,
Yann E. MORIN.

Quoted 24 lines
---
 package/pcre/pcre.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/pcre/pcre.mk +1 -1
index c85f6717db..59750c28e7 100644
@@ -18,7 +18,7 @@ HOST_PCRE_CONF_OPTS = --enable-unicode-properties
 
 ifneq ($(BR2_INSTALL_LIBSTDCPP),y)
 # pcre will use the host g++ if a cross version isn't available
-PCRE_CONF_OPTS = --disable-cpp
+PCRE_CONF_OPTS += --disable-cpp
 endif
 
 PCRE_CONF_OPTS += --enable-pcre8
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot