Skip to contentSkip to conversation

package/wireshark: fix compile with ccache enabled

PATCH Applied Peter Seiderer 3 participants 3 messages Mar 25, 2022 – Mar 31, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/wireshark: fix compile with ccache enabled

- use HOSTCC_NOCCACHE (instead of HOSTCC) for LEMON_C_COMPILER

Fixes:
[...] /usr/bin/cmake [...] -DLEMON_C_COMPILER=.../host/bin/ccache /usr/bin/gcc [...] [...]
[ 0%] Building C object tools/lemon/CMakeFiles/lemon.dir/lemon.c.o .../host/bin/ccache: invalid option -- 'D'

---
 package/wireshark/wireshark.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/wireshark/wireshark.mk +1 -1
index a5ca4b1f73..1a549f7037 100644
@@ -25,7 +25,7 @@ WIRESHARK_CONF_OPTS = \
 	-DENABLE_ILBC=OFF \
 	-DENABLE_PCAP=ON \
 	-DENABLE_SMI=OFF \
-	-DLEMON_C_COMPILER=$(HOSTCC)
+	-DLEMON_C_COMPILER=$(HOSTCC_NOCCACHE)
 
 ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
 WIRESHARK_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic
Signature · 6 lines
2.35.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 10 lines · Peter Seiderer

- use HOSTCC_NOCCACHE (instead of HOSTCC) for LEMON_C_COMPILER

Fixes:

   [...] /usr/bin/cmake [...] -DLEMON_C_COMPILER=.../host/bin/ccache /usr/bin/gcc [...]
   [...]
   [  0%] Building C object tools/lemon/CMakeFiles/lemon.dir/lemon.c.o
   .../host/bin/ccache: invalid option -- 'D'

Applied to master, thanks.

Regards,
Arnout

Quoted 9 lines
---
  package/wireshark/wireshark.mk | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
package/wireshark/wireshark.mk +0 -0
index a5ca4b1f73..1a549f7037 100644

package/wireshark/wireshark.mk WIRESHARK_CONF_OPTS = \ · line 31

Quoted 8 lines
package/wireshark/wireshark.mk +1 -1
@@ -25,7 +25,7 @@ WIRESHARK_CONF_OPTS = \
  	-DENABLE_ILBC=OFF \
  	-DENABLE_PCAP=ON \
  	-DENABLE_SMI=OFF \
-	-DLEMON_C_COMPILER=$(HOSTCC)
+	-DLEMON_C_COMPILER=$(HOSTCC_NOCCACHE)
 
  ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
  WIRESHARK_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic

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

#2 lore raw
In reply to Peter Seiderer
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Peter" == Peter Seiderer <[email protected]> writes:

- use HOSTCC_NOCCACHE (instead of HOSTCC) for LEMON_C_COMPILER
Fixes:
[...] /usr/bin/cmake [...] -DLEMON_C_COMPILER=.../host/bin/ccache /usr/bin/gcc [...] [...]
[ 0%] Building C object tools/lemon/CMakeFiles/lemon.dir/lemon.c.o .../host/bin/ccache: invalid option -- 'D'

Committed to 2021.02.x and 2022.02.x, thanks.

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