Skip to contentSkip to conversation

tvheadend: fix error compiling with ccache

PATCH New Martin Bark 2 participants 3 messages Feb 21, 2014 – Feb 22, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 tvheadend: fix error compiling with ccache

The tvheadend configure script fails to correctly handle spaces in any of the options passed to it. If ccache is used the configure script fails to handle the space in the --cc option and errors. Also the --cflags option fails to handle multiple entries and only uses the first one. This patch simple removes setting the --cc and --cflags options as the configure script will correctly use the CC and CFLAGS variables already passed in TARGET_CONFIGURE_OPTS.

---
 package/tvheadend/tvheadend.mk |    2 --
 1 file changed, 2 deletions(-)
package/tvheadend/tvheadend.mk +0 -2
index 43bc382..85240a0 100644
@@ -28,8 +28,6 @@ define TVHEADEND_CONFIGURE_CMDS
 	 $(TARGET_CONFIGURE_ARGS)		\
 	 ./configure				\
 	 --prefix=/usr				\
-	 --cc="$(TARGET_CC)"			\
-	 --cflags="$(TARGET_CFLAGS)"		\
 	 --arch="$(ARCH)"			\
 	 --cpu="$(BR2_GCC_TARGET_CPU)"		\
 	 --python="$(HOST_DIR)/usr/bin/python"	\
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/2 tvheadend: fix error compiling with ccache

Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Martin" == Martin Bark <[email protected]> writes:

The tvheadend configure script fails to correctly handle spaces in any of the options passed to it. If ccache is used the configure script fails to handle the space in the --cc option and errors. Also the --cflags option fails to handle multiple entries and only uses the first one. This patch simple removes setting the --cc and --cflags options as the configure script will correctly use the CC and CFLAGS variables already passed in TARGET_CONFIGURE_OPTS.

Quoted 2 lines

Committed, thanks.

Is there supposed to be a patch 2/2 somewhere?

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/2 tvheadend: fix error compiling with ccache

Peter,

Quoted 10 lines · Peter Korsgaard
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Martin" == Martin Bark <[email protected]> writes:

The tvheadend configure script fails to correctly handle spaces in any of the options passed to it. If ccache is used the configure script fails to handle the space in the --cc option and errors. Also the --cflags option fails to handle multiple entries and only uses the first one. This patch simple removes setting the --cc and --cflags options as the configure script will correctly use the CC and CFLAGS variables already passed in TARGET_CONFIGURE_OPTS.

Quoted 7 lines
Quoted 2 lines

Committed, thanks.

Is there supposed to be a patch 2/2 somewhere?

Thanks. I was going to submit a 2nd patch to bump the version but then decided against it because i got confused. The tvheadend version numbers seem a mess.

Martin