[vlc-commits] contrib: don't include config.h in installed pthread.h

Pierre Ynard git at videolan.org
Sun May 8 18:41:05 CEST 2011


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sun May  8 18:40:16 2011 +0200| [f12af9e1e024338ae265ecabd3645076cd94e9da] | committer: Pierre Ynard

contrib: don't include config.h in installed pthread.h

It's retarded for an installed file to depend on it

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f12af9e1e024338ae265ecabd3645076cd94e9da
---

 extras/contrib/src/contrib-src.mak |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/extras/contrib/src/contrib-src.mak b/extras/contrib/src/contrib-src.mak
index 8a96f69..a3a63bf 100644
--- a/extras/contrib/src/contrib-src.mak
+++ b/extras/contrib/src/contrib-src.mak
@@ -2303,7 +2303,7 @@ ifdef HAVE_WIN64
 endif
 
 .pthreads: pthreads
-	(cd $<; $(HOSTCC) $(PTHREADSCONF) make MAKEFLAGS=-j1 GC GC-static && mkdir -p $(PREFIX)/include && cp -v pthread.h sched.h semaphore.h $(PREFIX)/include/ && mkdir -p $(PREFIX)/lib && cp -v *.a *.dll $(PREFIX)/lib/)
+	(cd $<; $(HOSTCC) $(PTHREADSCONF) make MAKEFLAGS=-j1 GC GC-static && mkdir -p $(PREFIX)/include && cp -v pthread.h sched.h semaphore.h $(PREFIX)/include/ && sed -i 's/#if HAVE_CONFIG_H/#if 0 \&\& HAVE_CONFIG_H/' $(PREFIX)/include/pthread.h && mkdir -p $(PREFIX)/lib && cp -v *.a *.dll $(PREFIX)/lib/)
 	$(INSTALL_NAME)
 	touch $@
 



More information about the vlc-commits mailing list